mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
f474282a31
Wayland requires its clients to handle key repeating themselves. Our strategy is simple: start a timer on key down and fire key events at regular intervals until another key event arrives. However, if the program blocks the event loop while processing a synchronous event, key repeats might pile up before the stopping key event is processed. This change use the timestamp of the stopping key event to only dispatch the repeats queued up before the stop time. Signed-off-by: Elias Naur <mail@eliasnaur.com>