evdev: Process touch up events of single-touch devices
authorNeil Roberts <neil@linux.intel.com>
Tue, 24 Sep 2013 19:05:07 +0000 (20:05 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 24 Sep 2013 23:22:43 +0000 (16:22 -0700)
commitbe336c89182ce2acf608c889223cf7d1b8940083
treee97773c67d0c91a59aa355bcf6952ac01d428d0a
parentdaf7d4774beb5959d69eb6e84c0602872746d5a5
evdev: Process touch up events of single-touch devices

Previously only the touch up key event was used for single-touch
devices and the touch down event was generated on the first motion
event. This was breaking if the touch up and down events were sent
without a motion in-between because the evdev driver wouldn't generate
a touch down event and Weston would lose track of the number of touch
points that are down. This patch changes it to track the up and down
key events as pending events similar to how it does for multi-touch
devices.

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