From 30a398591ba2d7b50767fb2f7d55b2caff491cd3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 24 Apr 2018 15:57:04 +1000 Subject: [PATCH] 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 --- src/evdev-mt-touchpad.c | 4 ++++ 1 file changed, 4 insertions(+) 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;