1
0
forked from drath/libratbag

Ignore devices that don't have ID_INPUT_MOUSE set

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2016-05-05 12:55:22 +10:00
parent 1da0180e0f
commit 91eefb9a3f

View File

@@ -418,6 +418,9 @@ ratbag_device_new_from_udev_device(struct ratbag *ratbag,
assert(udev_device != NULL);
assert(device_out != NULL);
if (udev_prop_value(udev_device, "ID_INPUT_MOUSE") == NULL)
goto out_err;
if (get_product_id(udev_device, &id) != 0)
goto out_err;