HumbleUI / JWM

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

Add Mac bringToFront with NSApp activateIgnoringOtherApps #269

Closed Quezion closed 1 year ago

Quezion commented 1 year ago

Also implement IsFront with NSWindow isMainWindow

Mac equivalent to PR #266, where these two functions work to get "launcher functionality" out of my HumbleUI program. I'm also still using JNativeHook to read Alt+Space from the user's keyboard while the launcher program is in the background & then forcing it to the front via BringToFront()

IsFront() is similarly used to determine whether the launcher is already in the foreground so that the launcher can self-minimize.

tonsky commented 1 year ago

Thanks!