evdev: Avoid double touch down/up events
authorJonas Ådahl <jadahl@gmail.com>
Mon, 24 Mar 2014 22:37:09 +0000 (23:37 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 22 Apr 2014 21:45:38 +0000 (23:45 +0200)
commitcf2d61439edcf3efc99fb586e07681c06d433e0a
tree83a821570dc11cae3757ca8f5b7117fa2ca12a7b
parent086c5916758f078c54a12f330a418dd85295247e
evdev: Avoid double touch down/up events

When the kernel sends multiple touch down or touch up for the same slot
in a row, ignore any such subsequent event ensuring libinput always
produces 1 x touch down -> [n x touch motion] -> 1 x touch up event
series.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c