[PATCH libinput 3/4] touchpad: only try to detect touchpad wobbling with one finger down

Peter Hutterer peter.hutterer at who-t.net
Mon Apr 30 05:33:04 UTC 2018


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 at who-t.net>
---
 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 704d238a..ce302e43 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;
 
-- 
2.14.3



More information about the wayland-devel mailing list