[mutter/wip/multitouch: 47/73] display: Ignore events from slave devices
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/multitouch: 47/73] display: Ignore events from slave devices
- Date: Mon, 31 Oct 2011 00:20:40 +0000 (UTC)
commit 4e6e40de87b3549a1b6c5acf20a3e26f99cccf49
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jul 9 18:45:35 2011 +0200
display: Ignore events from slave devices
Mutter only handles master devices.
src/core/display.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 83eca61..5293780 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1793,6 +1793,13 @@ event_callback (XEvent *event,
}
device = meta_input_event_get_device (display, event);
+
+ /* Ignore unknown devices, most likely
+ * slave devices we don't care about
+ */
+ if (!device)
+ return FALSE;
+
grab_info = meta_display_get_grab_info (display, device);
switch (evtype)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]