Ensure hw millis are monotonic (#48777)
Ensure hw millis are monotonic (#48777)

The eventcomm backend takes the timestamp from the kernel, but the timer
uses the timer's "now". This timestamp may be later than the one from the
next event we read from the kernel, causing a negative dtime in get_delta()
and a cursor jump by (unsigned int)-1.

Ensure that the new event's timestamp is at least the last used one.

X.Org Bug 48777 <http://bugs.freedesktop.org/show_bug.cgi?id=48777>

Signed-off-by: Peter Hutterer <b9c50af7afa7642f6f854434cda9ffe54ece8b85@who-t.net>
Reviewed-by: Peter Hutterer <b9c50af7afa7642f6f854434cda9ffe54ece8b85@who-t.net>
Tested-by: Gavin Troy <4d161b0c6055787f37a88b432a9a2a3fa767dcdd@gmail.com>

mad-s/xf86-input-synaptics-absolute,mad-s/xf86-input-synaptics-absolute