Re:Why Is It So Hard to Detect Keyup Event on Linux?
by alkonaut on Monday May 17, 2021 @11:20AM
(#27184447)
Detecting keyup only in a window env seems like a perfectly good place to be. The problem there might be that there is no such thing as a "desktop linux" so writing a nice cross platform desktop app for any Linux regardless of window manager and desktop env I assume is a bit of a black art.
[ Parent
| on HN ]
Re:Why Is It So Hard to Detect Keyup Event on Linux?
by josefx on Monday May 17, 2021 @11:36AM
(#27184661)
The X11 example only has a basic event loop with a check if the if the key up event was repeated. Everything else is setting up the window and tearing it down on close. That should work in any window manager.
Most of the examples are either global listeners or outside of a window environment.