eudev: mark switch inputs as ID_INPUT_KEY too

This commit is contained in:
Enno Boland 2018-03-20 21:36:43 +01:00
parent 16f19164c0
commit 31d60a7324
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- src/udev/udev-builtin-input_id.c.orig 2018-03-20 21:28:01.154589960 +0100
+++ src/udev/udev-builtin-input_id.c 2018-03-20 21:28:03.672847430 +0100
@@ -292,6 +292,8 @@ static int builtin_input_id(struct udev_
if (!is_pointer && !is_key && test_bit(EV_REL, bitmask_ev) &&
(test_bit(REL_WHEEL, bitmask_rel) || test_bit(REL_HWHEEL, bitmask_rel)))
udev_builtin_add_property(dev, test, "ID_INPUT_KEY", "1");
+ if (test_bit(EV_SW, bitmask_ev))
+ udev_builtin_add_property(dev, test, "ID_INPUT_SWITCH", "1");
}
devnode = udev_device_get_devnode(dev);

View File

@ -4,7 +4,7 @@ _UDEV_VERSION="220" # compatible udev version provided
pkgname=eudev
version=3.2.5
revision=1
revision=2
conf_files="/etc/udev/udev.conf"
build_style=gnu-configure
configure_args="--enable-hwdb --enable-manpages --disable-introspection"