Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Imagine the following snippet is run: keygrabber.run(function(mod, key, event) gears.debug.dump{mod, key, event} end) The above starts a keygrabber and prints the events that are received. Currently, when a key is pressed and held down, this prints a series of press and release, because that's what the X11 server sends us. This commit enables detectable autorepeat. This means that the X11 server only sends us a series of press events for autorepeat and a single release when the key really is released. Testing this is a bit hard, because detectable autorepeat does not seem to work with Xephyr. Instead, a "real" Xorg instance is needed. We do not check the response to the PerClientFlags request, because it doesn't really tell us anything useful. If the server does not support detectable autorepeat, we could print a warning, but so what? As I just said, this does not work in Xephyr and yet Xephyr announced to support this. Signed-off-by: Uli Schlachter <psychon@znc.in>
- Loading branch information