tools/libinput-replay: interrupt only the ongoing event sequence with ctrl+c
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 19 Dec 2024 01:48:49 +0000 (11:48 +1000)
committerMarge Bot <emma+marge@anholt.net>
Sun, 22 Dec 2024 23:59:22 +0000 (23:59 +0000)
commit193aacf61a8932d6ac872f7e42230e1b9ca68e91
treebde4918ea013bdb99fc41a232c4bada486072de7
parenta03058db7250f41e6bd8b5c2c0b09c65cefdbcb0
tools/libinput-replay: interrupt only the ongoing event sequence with ctrl+c

If libinput replay is currently replaying events, stop that sequence and
go back to the start if the user presses Ctrl+C. Only on the second
Ctrl+C do we fully exit.

This helps debugging long recordings where we don't want to keep
producing events after some initial event sequence.

Closes #1064

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1102>
tools/libinput-replay.py