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:
9c3a597
)
touchpad: only try to detect touchpad wobbling with one finger down
author
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 24 Apr 2018 05:57:04 +0000
(15:57 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 2 May 2018 04:17:32 +0000
(14:17 +1000)
Too many touches are unreliable with 2+ fingers down and we should error on
the side of not detecting wobbling.
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 56c618eb8ab11dc08119b569322abd29c1b3f3f8..d4f02eb623a030879de1f3cfff01c0c9c423a96f 100644
(file)
--- a/
src/evdev-mt-touchpad.c
+++ b/
src/evdev-mt-touchpad.c
@@
-155,6
+155,10
@@
tp_detect_wobbling(struct tp_dispatch *tp,
int dx, dy;
uint64_t dtime;
+ if (tp->nfingers_down == 1 &&
+ tp->nfingers_down == tp->old_nfingers_down)
+ return;
+
if (tp->hysteresis.enabled)
return;