evdev: Flush motion events when the slot changes, not just after sync
authorNeil Roberts <neil@linux.intel.com>
Fri, 20 Sep 2013 14:03:29 +0000 (15:03 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 22 Sep 2013 20:58:33 +0000 (13:58 -0700)
commitf65c486090941958ad78a3a29741cf7e94aa2a31
tree5540440ad2d2d41ae7e9789d6985e6d5eb80b35b
parent4df790e505648510ce06636111ce0daf2302ee46
evdev: Flush motion events when the slot changes, not just after sync

If two fingers are released almost simultaneously then evdev can send
the touch up events in one bunch without sending a sync event
in-between. However, the evdev_device struct only keeps track of one
pending touch up event so in this case the second touch up event would
override the first and it would be lost. This patch changes it to also
flush the events whenever the slot changes so that it will flush the
previous touch up event before trying to queue the next one.

https://bugs.freedesktop.org/show_bug.cgi?id=67563
src/evdev-touchpad.c
src/evdev.c
src/evdev.h