projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ba7295
)
evdev: Only add event devices
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 21 Jul 2011 13:46:26 +0000
(06:46 -0700)
committer
Jonas Ådahl
<jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:25 +0000
(17:51 +0100)
compositor/evdev.c
patch
|
blob
|
history
diff --git
a/compositor/evdev.c
b/compositor/evdev.c
index
def22b9
..
9a9a310
100644
(file)
--- 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)