HumbleUI / JWM

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

X11: add held modifier info on mouse events when window isn't focused #274

Closed dzaima closed 11 months ago

dzaima commented 12 months ago

Before this, moving the mouse or scrolling in JWM window while it isn't focused would always give no held modifiers. With this patch, the modifiers are read from the appropriate field in addition to the key state logic. (mouse/key presses don't need changes, as they only happen when the window is already focused)

tonsky commented 11 months ago

Thanks!