Skip to content

Commit 545c65f

Browse files
committed
Add a comment about the fix.
1 parent f196414 commit 545c65f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

druid-shell/src/platform/mac/application.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ lazy_static! {
172172
extern "C" fn application_did_finish_launching(_this: &mut Object, _: Sel, _notification: id) {
173173
unsafe {
174174
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.
175177
ns_app.setActivationPolicy_(NSApplicationActivationPolicyRegular);
176178
let () = msg_send![ns_app, activateIgnoringOtherApps: YES];
177179
}

0 commit comments

Comments
 (0)