GNOME Bugzilla – Bug 706543
evdev: use monotonic times for the events
Last modified: 2013-09-09 10:07:18 UTC
The monotonic clock is what X uses too, so this way the timestamps can be compared.
Created attachment 252679 [details] [review] evdev: use monotonic times for the events
Review of attachment 252679 [details] [review]: looks generally okay to me, just a minor coding style fix before commit. ::: clutter/evdev/clutter-device-manager-evdev.c @@ +592,3 @@ + /* Tell evdev to use the monotonic clock for its timestamps */ + clkid = CLOCK_MONOTONIC; + ioctl(fd, EVIOCSCLOCKID, &clkid); missing space.
Attachment 252679 [details] pushed as b73f513 - evdev: use monotonic times for the events