[mutter/wip/multitouchr: 48/73] display: Ignore events from slave devices
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/multitouchr: 48/73] display: Ignore events from slave devices
- Date: Sat, 3 Nov 2012 23:54:14 +0000 (UTC)
commit f512da8c4712369c0496ebd3364294228156ee1c
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 cbe37d4..7dfa3b3 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2020,6 +2020,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]