touchpad: enable hysteresis based on a 0 fuzz value

If the fuzz is 0, assume we don't need hysteresis and use the wobble detection
code instead. If the fuzz is non-zero, enable it by default.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-02-23 11:44:23 +10:00
parent ea7498ef97
commit 1b64888a22

View file

@ -3109,7 +3109,9 @@ tp_init_hysteresis(struct tp_dispatch *tp)
tp->hysteresis.margin.x = xmargin;
tp->hysteresis.margin.y = ymargin;
tp->hysteresis.enabled = false;
tp->hysteresis.enabled = (ax->fuzz || ay->fuzz);
if (tp->hysteresis.enabled)
evdev_log_debug(tp->device, "hysteresis enabled\n");
}
static void