[Wayland-bugs] [Bug 106365] False positives with wobble detection
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu May 3 08:52:06 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=106365
Peter Hutterer <peter.hutterer at who-t.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter.hutterer at who-t.net
--- Comment #3 from Peter Hutterer <peter.hutterer at who-t.net> ---
embarassing... issue is that I had the logic inverted (from an earlier
version). This one makes it work:
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 6560ac3e..ce694c28 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -155,8 +155,8 @@ 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)
+ if (tp->nfingers_down != 1 ||
+ tp->nfingers_down != tp->old_nfingers_down)
return;
if (tp->hysteresis.enabled)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180503/72534b6e/attachment.html>
More information about the wayland-bugs
mailing list