]> git.sur5r.net Git - i3/i3/commit
Enable detectable autorepeat 3309/head
authorOrestis Floros <orestisf1993@gmail.com>
Tue, 12 Jun 2018 20:50:09 +0000 (23:50 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Fri, 15 Jun 2018 10:56:31 +0000 (13:56 +0300)
commitb87bc70cd6184f3fd066587df960a628a34e17fd
treec93b60471267204fd6d76e312b2d8be2a657f514
parent997459a1db158ccab84eef787a644bd617c37071
Enable detectable autorepeat

https://www.x.org/releases/current/doc/kbproto/xkbproto.html#Detectable_Autorepeat

Detectable autorepeat should only affect --release bindings. Currently,
when a user keeps a key pressed, we get multiple KeyPress and KeyRelease
events. With this change, we still get multiple KeyPress events, which
means that you can still keep a key pressed to repeatedly execute a
normal binding, but only one KeyRelease event when the key is physically
released.

Unfortunately, this change is not currently testable because detectable
autorepeat doesn't seem to work under Xephyr. AwesomeWM experienced the
same problem:
https://github.com/awesomeWM/awesome/commit/6f2424e90170be4acaa1d140f966ab6bb8a4d217

Fixes #3306
src/main.c