void-packages/srcpkgs/eudev/patches/identify_switches.patch
2018-03-20 21:36:48 +01:00

11 lines
668 B
Diff

--- 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);