touchpad: don't try to unhover touches in NONE state

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit b4bb28caeb)
This commit is contained in:
Peter Hutterer 2017-03-29 10:36:30 +10:00
parent c17ab4dacd
commit 124c112420

View file

@ -811,6 +811,9 @@ tp_unhover_pressure(struct tp_dispatch *tp, uint64_t time)
for (i = 0; i < (int)tp->num_slots; i++) {
t = tp_get_touch(tp, i);
if (t->state == TOUCH_NONE)
continue;
if (t->dirty) {
if (t->state == TOUCH_HOVERING) {
if (t->pressure >= tp->pressure.high) {