evdev: don't truncate event time to 32 bits
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 9 Apr 2021 00:12:45 +0000 (10:12 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 9 Apr 2021 00:14:47 +0000 (10:14 +1000)
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>
src/evdev.c

index 14796e8..0f892b8 100644 (file)
@@ -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