commit a05752d3a460ffd94576e1d3007848c1e651da13 Author: Konstantin Kharlamov Date: Wed May 2 14:42:38 2018 +0300 Revert "touchpad: reset the wobble detection for non-pointer events" This reverts commit 9c3a597aabc1ad7f004f2bdcc9fa8a423d19417d. diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index d4f02eb6..38ffc20d 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -159,14 +159,9 @@ tp_detect_wobbling(struct tp_dispatch *tp, tp->nfingers_down == tp->old_nfingers_down) return; - if (tp->hysteresis.enabled) + if (!(tp->queued & TOUCHPAD_EVENT_MOTION) || tp->hysteresis.enabled) return; - if (!(tp->queued & TOUCHPAD_EVENT_MOTION)) { - t->hysteresis.x_motion_history = 0; - return; - } - if (t->last_point.x == 0) { /* first invocation */ dx = 0; dy = 0;