mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
udev: only change the fuzz on touchpads and touchscreens (v2)
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:
parent
e65392c2f5
commit
1f59f06266
1 changed files with 11 additions and 3 deletions
|
|
@ -6,7 +6,15 @@
|
|||
ACTION!="add|change", GOTO="libinput_fuzz_override_end"
|
||||
KERNEL!="event*", GOTO="libinput_fuzz_override_end"
|
||||
|
||||
ATTRS{capabilities/abs}!="0", IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-override %S%p"
|
||||
|
||||
LABEL="libinput_model_quirks_end"
|
||||
# libinput-fuzz-override must only be called once per device, otherwise
|
||||
# we'll lose the fuzz information
|
||||
ATTRS{capabilities/abs}!="0", \
|
||||
ENV{ID_INPUT_TOUCHPAD}=="1", \
|
||||
IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-override %S%p", \
|
||||
GOTO="libinput_fuzz_override_end"
|
||||
ATTRS{capabilities/abs}!="0", \
|
||||
ENV{ID_INPUT_TOUCHSCREEN}=="1", \
|
||||
IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-override %S%p", \
|
||||
GOTO="libinput_fuzz_override_end"
|
||||
|
||||
LABEL="libinput_fuzz_override_end"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue