From 410b157e8487191a32acf5b3bf3811d40e96dac7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 5 Jun 2019 10:11:12 +1000 Subject: [PATCH] udev: only change the fuzz on touchpads and touchscreens If we don't handle a device, don't touch it. Especially joysticks that we don't handle and thus should not touch either. Related to !231 Signed-off-by: Peter Hutterer --- udev/libinput-model-quirks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/udev/libinput-model-quirks.c b/udev/libinput-model-quirks.c index bb05886c..10de3359 100644 --- a/udev/libinput-model-quirks.c +++ b/udev/libinput-model-quirks.c @@ -110,7 +110,9 @@ int main(int argc, char **argv) if (!device) goto out; - handle_absfuzz(device); + if (udev_device_get_property_value(device, "ID_INPUT_TOUCHPAD") || + udev_device_get_property_value(device, "ID_INPUT_TOUCHSCREEN")) + handle_absfuzz(device); rc = 0;