summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-04-24 15:57:04 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-05-02 14:17:32 +1000
commit30a398591ba2d7b50767fb2f7d55b2caff491cd3 (patch)
tree2b71e55127c0181079f690ee4df1b836aba6822b
parent9c3a597aabc1ad7f004f2bdcc9fa8a423d19417d (diff)
touchpad: only try to detect touchpad wobbling with one finger down
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>
-rw-r--r--src/evdev-mt-touchpad.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 56c618eb..d4f02eb6 100644
--- 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;