mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 02:28:05 +02:00
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:
parent
ea7498ef97
commit
1b64888a22
1 changed files with 3 additions and 1 deletions
|
|
@ -3109,7 +3109,9 @@ tp_init_hysteresis(struct tp_dispatch *tp)
|
||||||
|
|
||||||
tp->hysteresis.margin.x = xmargin;
|
tp->hysteresis.margin.x = xmargin;
|
||||||
tp->hysteresis.margin.y = ymargin;
|
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
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue