evdev: check the first parent of the event node for ID_INPUT tags
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Feb 2015 01:40:19 +0000 (11:40 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 18 Feb 2015 00:08:35 +0000 (10:08 +1000)
commit65e077759b1a1ca3218e27ae32c46b901a747c05
tree4696f899fd18505b2318f5757d1b37e426e56f96
parentcbeacfed13e164d3c7ba549a63f08317f067d884
evdev: check the first parent of the event node for ID_INPUT tags

Bluetooth tablet devices' rules can't tag the event node directly, they can
only tag the first parent (the /sys/class/input/input1234 node). Check that
parent for tags too, lest we miss something important.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Tested-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
src/evdev.c