[PATCH libinput] udev: don't overwrite a previously set device group

Peter Hutterer peter.hutterer at who-t.net
Wed Jul 20 09:55:48 UTC 2016


In some cases a device may need a device group assigned by a custom udev rule
or hwdb entry. Don't overwrite that with our generated one.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 udev/80-libinput-device-groups.rules.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/udev/80-libinput-device-groups.rules.in b/udev/80-libinput-device-groups.rules.in
index c2af0ce..1a26f78 100644
--- a/udev/80-libinput-device-groups.rules.in
+++ b/udev/80-libinput-device-groups.rules.in
@@ -2,6 +2,7 @@ ACTION!="add|change", GOTO="libinput_device_group_end"
 KERNEL!="event[0-9]*", GOTO="libinput_device_group_end"
 
 ATTRS{phys}=="?*", \
+	ENV{LIBINPUT_DEVICE_GROUP}=="", \
 	PROGRAM="@UDEV_TEST_PATH at libinput-device-group %S%p", \
 	ENV{LIBINPUT_DEVICE_GROUP}="%c"
 
-- 
2.7.4



More information about the wayland-devel mailing list