[Wayland-bugs] [Bug 106365] False positives with wobble detection
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu May 3 08:54:33 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=106365
--- Comment #4 from Hi-Angel <Hi-Angel at yandex.ru> ---
(In reply to Peter Hutterer from comment #3)
> 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)
Don't be sad! Thank you, works for me.
--
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/4ffb12ef/attachment.html>
More information about the wayland-bugs
mailing list