1
0
forked from drath/libratbag

Merge pull request #83 from whot/ignore-keyboard-devices

Ignore devices that don't have ID_INPUT_MOUSE set
This commit is contained in:
bentiss
2016-05-09 10:37:11 +02:00

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;