HumbleUI / JWM

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

macOS: Implement window focus events #233

Closed LuisThiamNye closed 2 years ago

LuisThiamNye commented 2 years ago

Implements the EventWindowFocusIn and EventWindowFocusOut events on macOS.

It is worth noting that macOS has different types of focus: whether the application is active, whether a window accepts input (key window) and whether a window is the main window (has the active appearance). This implementation listens to 'key window' events, because this gives expectations consistent with the X11 and Windows implementations.

tonsky commented 2 years ago

Dope, thank you!