touchpad: drop the tap finger count
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 4 May 2015 06:22:36 +0000 (16:22 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 4 May 2015 21:44:18 +0000 (07:44 +1000)
commitc9a3c7a7e324459f2f57d17f2c334750c9f78494
tree212399cb508c836bdf156884f9b512174778432b
parentd6867dfae013d7924dbf4c6aa71e7f7c04be75b2
touchpad: drop the tap finger count

Use tp->nfingers_down as trigger when we have no fingers left on the touchpad
and when we should return to idle. If all touchpoints end in the same frame
tp->nfingers is 0. Thus when we handle the first tap release we transition to
IDLE which now needs to handle (and discard) any touch release events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev-mt-touchpad-tap.c
src/evdev-mt-touchpad.h