From db6a04665c3280e2ca97819e63873cfc910ff960 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 7 Nov 2025 14:28:59 +1000 Subject: [PATCH] touchpad: use INPUT_PROP_PRESSUREPAD as signal it's a pressurepad Because, well, it says so on the box now. No more quirks, hopefully! Part-of: --- src/evdev-mt-touchpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index bc03d6e5..e7f327c1 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -3622,7 +3622,8 @@ tp_init_pressurepad(struct tp_dispatch *tp, struct evdev_device *device) * * See also #562 */ - if (libevdev_get_abs_resolution(device->evdev, ABS_MT_PRESSURE) != 0 || + if (libevdev_has_property(device->evdev, INPUT_PROP_PRESSUREPAD) || + libevdev_get_abs_resolution(device->evdev, ABS_MT_PRESSURE) != 0 || evdev_device_has_model_quirk(device, QUIRK_MODEL_PRESSURE_PAD)) { libevdev_disable_event_code(device->evdev, EV_ABS, ABS_MT_PRESSURE); libevdev_disable_event_code(device->evdev, EV_ABS, ABS_PRESSURE);