mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-09 02:50:16 +01:00
timer: drain data on the timerfd when it triggers
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
b6238b8286
commit
2d86dc2c6e
1 changed files with 3 additions and 0 deletions
|
|
@ -101,6 +101,9 @@ libinput_timer_handler(void *data)
|
|||
struct libinput *libinput = data;
|
||||
struct libinput_timer *timer, *tmp;
|
||||
uint64_t now;
|
||||
uint64_t discard;
|
||||
|
||||
read(libinput->timer.fd, &discard, sizeof(discard));
|
||||
|
||||
now = libinput_now(libinput);
|
||||
if (now == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue