HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
571 stars 46 forks source link

macOS: Menu bar issues #209

Closed mworzala closed 2 years ago

mworzala commented 2 years ago

When launching the example app, you are unable to interact with the menu bar (including the "apple menu").

The problematic call is [NSApp activateIgnoringOtherApps:YES] in WindowMac#setVisible. When called before the app has finished launching this fails. A solution proposed in this SO answer is to add an app delegate which calls activateIgnoringOtherApps on applicationDidFinishLaunching which does solve the issue.

The basic app menu does work after this change.

tonsky commented 2 years ago

You are a savior! Thank you!