diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-03-29 10:36:30 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-03-29 11:13:23 +1000 |
commit | b4bb28caeb76b76ef00d0fc142f4d5a1ce9b7e59 (patch) | |
tree | cd9f73281e0914dafa4bf937839d781f3e014e25 | |
parent | 24445374b296072ce70699cf96f5b8371c97c729 (diff) |
touchpad: don't try to unhover touches in NONE state
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/evdev-mt-touchpad.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 674cf1c..eb950a2 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -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) { |