touchpad: ignore hovering touches when tapping
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 11 Jan 2017 06:12:47 +0000 (16:12 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 26 Jan 2017 05:43:02 +0000 (15:43 +1000)
commit3170b3519b869dcd4e304822b0b12a5b31d9deb9
treeb7d2aa6d04c11cc33e5be9dbcabb433c942ceccd
parent618ee6ac9495297a74059f95ad140928b2ea1fb7
touchpad: ignore hovering touches when tapping

We need to remember whether a tap was down or just hovering, otherwise we mess
up the state machine when we send tap release events for taps that never
switched to TOUCH_BEGIN. This is quick fix, really we should have a new state
here, but that's a lot harder to implement.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-tap.c
src/evdev-mt-touchpad.c
src/evdev-mt-touchpad.h
test/test-touchpad.c