]> git.mdlowis.com Git - proto/labwc.git/commit
keyboard: cancel keybind_repeat on reconfigure
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 30 Dec 2024 23:52:55 +0000 (00:52 +0100)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 31 Dec 2024 10:53:34 +0000 (19:53 +0900)
commit663f913ee4b827109ee634ecb2ccdf0e276fd132
tree136ab2e7ace79d74c0c674a2572592594a369e56
parent7a6ecca8044c63ce0cc1101305b4b6cdbf2959f9
keyboard: cancel keybind_repeat on reconfigure

Currently we may end up in an endless loop of Reconfigure requests
if the Reconfigure action was called by a keybind. If the reconfigure
takes too long (which may happen on slow systems with libsfdo full
debug logging for example) the reconfigure might be triggered again
and again.

To prevent that, simply cancel all keybind_repeat timers on reconfigure.
include/input/keyboard.h
src/input/keyboard.c
src/server.c