[mutter/wip/xinput2r: 50/68] display: Ignore events from slave devices
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/xinput2r: 50/68] display: Ignore events from slave devices
- Date: Wed, 24 Oct 2012 16:13:31 +0000 (UTC)
commit 33e7ae7b10daf94fa314eceb14e2155a55d73eaa
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 9dede6a..34668e7 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2003,6 +2003,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]