mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 08:18:02 +02:00
evdev: Only add event devices
This commit is contained in:
parent
1ba7295e44
commit
bdf74308e3
1 changed files with 3 additions and 0 deletions
|
|
@ -237,6 +237,9 @@ evdev_input_add_devices(struct wlsc_compositor *c,
|
||||||
path = udev_list_entry_get_name(entry);
|
path = udev_list_entry_get_name(entry);
|
||||||
device = udev_device_new_from_syspath(udev, path);
|
device = udev_device_new_from_syspath(udev, path);
|
||||||
|
|
||||||
|
if (strncmp("event", udev_device_get_sysname(device), 5) != 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
device_seat =
|
device_seat =
|
||||||
udev_device_get_property_value(device, "ID_SEAT");
|
udev_device_get_property_value(device, "ID_SEAT");
|
||||||
if (!device_seat)
|
if (!device_seat)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue