summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-04-09 10:12:45 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-04-09 10:14:47 +1000
commit04dc67e09250cdf275b139ac9ab0b9a118a7de29 (patch)
treef0266217584476386ca54c4a09bfa91eef7519c3
parent95a72990ad71285b834646210c5a483baabd4b4e (diff)
downloadlibinput-04dc67e09250cdf275b139ac9ab0b9a118a7de29.tar.gz
evdev: don't truncate event time to 32 bits
This causes a bunch of "your system is too slow" messages in e.g. the various gesture tests. Fixes 95a72990 Fixes #601 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 14796e83..0f892b80 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1024,7 +1024,7 @@ evdev_note_time_delay(struct evdev_device *device,
{
struct libinput *libinput = evdev_libinput_context(device);
uint32_t tdelta;
- uint32_t eventtime = input_event_time(ev);
+ uint64_t eventtime = input_event_time(ev);
/* if we have a current libinput_dispatch() snapshot, compare our
* event time with the one from the snapshot. If we have more than