From afd3be9a99d2620e9c2557ae22f32a4bfc6a21e8 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 26 Jun 2025 14:32:27 +1000 Subject: [PATCH] touchpad: allow disabling the touchpad hysteresis Over the years we had a few devices that required some special hysteresis handling - all of it very customized to the device and not upstreamable (or even implementable by upstream without the device). Part-of: --- src/evdev-mt-touchpad.c | 3 +++ src/libinput-feature.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index d4eada9a..a6c330c3 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -2765,6 +2765,9 @@ tp_interface_disable_feature(struct evdev_dispatch *dispatch, case LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION: tp->jump.detection_disabled = true; break; + case LIBINPUT_FEATURE_TOUCHPAD_HYSTERESIS: + tp->hysteresis.enabled = false; + break; default: return; } diff --git a/src/libinput-feature.h b/src/libinput-feature.h index ee355ced..023e20be 100644 --- a/src/libinput-feature.h +++ b/src/libinput-feature.h @@ -27,6 +27,7 @@ enum libinput_feature { LIBINPUT_FEATURE_BUTTON_DEBOUNCING = 1, LIBINPUT_FEATURE_WHEEL_DEBOUNCING, LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION, + LIBINPUT_FEATURE_TOUCHPAD_HYSTERESIS, _LIBINPUT_N_FEATURES };