projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6238b8
)
timer: drain data on the timerfd when it triggers
author
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 30 Apr 2015 01:24:48 +0000
(11:24 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 30 Apr 2015 07:48:25 +0000
(17:48 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/timer.c
patch
|
blob
|
history
diff --git
a/src/timer.c
b/src/timer.c
index f6c8e427679be2ef347e8abda1837dc7cb2ff45b..285f75b2a0a83b4d58485704978b0a416beb5fec 100644
(file)
--- a/
src/timer.c
+++ b/
src/timer.c
@@
-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)