projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2444537
)
touchpad: don't try to unhover touches in NONE state
author
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 29 Mar 2017 00:36:30 +0000
(10:36 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 29 Mar 2017 01:13:23 +0000
(11:13 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad.c
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad.c
b/src/evdev-mt-touchpad.c
index
674cf1c
..
eb950a2
100644
(file)
--- 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) {