diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-07-21 06:46:26 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-07-21 08:42:58 -0700 |
commit | 1d266036334fba8d0488d7b91707541c3d9efa99 (patch) | |
tree | bf9e1010e1f23356ddb4f999acc280a77e4c2dc0 | |
parent | b3b425c8d18e176a0118837f3f26203972af8272 (diff) |
evdev: Only add event devices
-rw-r--r-- | compositor/evdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compositor/evdev.c b/compositor/evdev.c index def22b9d..9a9a3100 100644 --- a/compositor/evdev.c +++ b/compositor/evdev.c @@ -237,6 +237,9 @@ evdev_input_add_devices(struct wlsc_compositor *c, path = udev_list_entry_get_name(entry); device = udev_device_new_from_syspath(udev, path); + if (strncmp("event", udev_device_get_sysname(device), 5) != 0) + continue; + device_seat = udev_device_get_property_value(device, "ID_SEAT"); if (!device_seat) |