mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 21:40:05 +01:00
udev: use prop_value() to fetch the ID_INPUT_PROP property
This will thus work if the property is only set on a parent device, not on the device directly. https://github.com/systemd/systemd/issues/763 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
74236f1047
commit
05ce472a05
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ int main(int argc, char **argv)
|
|||
if (!device)
|
||||
goto out;
|
||||
|
||||
if (udev_device_get_property_value(device, "ID_INPUT_TOUCHPAD"))
|
||||
if (prop_value(device, "ID_INPUT_TOUCHPAD"))
|
||||
handle_touchpad(device);
|
||||
|
||||
rc = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue