Send an extra ABS_MT_SLOT event to sync the client up with the current slot
authorBenjamin Tissoires <btissoir@redhat.com>
Wed, 5 Mar 2014 02:03:57 +0000 (12:03 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 7 Mar 2014 00:16:11 +0000 (10:16 +1000)
commitd3ae3da90f871320de968924ef11ef1a02abc608
tree123267177168a06d39c89c03415d6b418c219c69
parent12ff51b8710aca9640caacf02a941ec8ff234348
Send an extra ABS_MT_SLOT event to sync the client up with the current slot

If multiple slots have changed during the sync handling, the client must be
re-set to the current slot before continuing with normal events.

Signed-off-by: Benjamin Tissoires <btissoir@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
libevdev/libevdev.c
test/test-libevdev-events.c