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 <[email protected]>
---
 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

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to