HumbleUI / JWM

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

X11: clear modifiers on window unfocusing #216

Closed dzaima closed 2 years ago

dzaima commented 2 years ago

A temporary-ish fix for #186; still leaves a dangling KeyPressed without a corresponding KeyReleased if you press a key, tab out, release key, tab back in. Fixing that would take some other much more complicated way.

tonsky commented 2 years ago

Thanks! Since we are resetting internal state, I figured it will make sense to send EventKey up too. Merged in 755685858cc748c813b2a614401247052e7d6901