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>
This commit is contained in:
Peter Hutterer committed 2019-06-07 01:16:05 +00:00
1 parent bf4277623f
commit 410b157e84
1 file changed
+3 -1
+3 -1
View File
@@ -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;