evdev: Only add event devices
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 21 Jul 2011 13:46:26 +0000 (06:46 -0700)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:25 +0000 (17:51 +0100)
compositor/evdev.c

index def22b9..9a9a310 100644 (file)
@@ -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)