We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f196414 commit 545c65fCopy full SHA for 545c65f
druid-shell/src/platform/mac/application.rs
@@ -172,6 +172,8 @@ lazy_static! {
172
extern "C" fn application_did_finish_launching(_this: &mut Object, _: Sel, _notification: id) {
173
unsafe {
174
let ns_app = NSApp();
175
+ // We need to delay setting the activation policy and activating the app
176
+ // until we have the main menu all set up. Otherwise the menu won't be interactable.
177
ns_app.setActivationPolicy_(NSApplicationActivationPolicyRegular);
178
let () = msg_send![ns_app, activateIgnoringOtherApps: YES];
179
}
0 commit comments