diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-06-05 10:11:12 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-06-07 01:16:05 +0000 |
commit | 410b157e8487191a32acf5b3bf3811d40e96dac7 (patch) | |
tree | ea5d3c661dfb20a40a9c477d249da3b7ae924f48 /udev | |
parent | bf4277623f7c24286b9f1e4b3ace51fbb5bb6a98 (diff) | |
download | libinput-410b157e8487191a32acf5b3bf3811d40e96dac7.tar.gz |
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 <peter.hutterer@who-t.net>
Diffstat (limited to 'udev')
-rw-r--r-- | udev/libinput-model-quirks.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |