[mutter/wayland: 4/15] events: Don't pass any X input events on to Clutter / GTK+
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland: 4/15] events: Don't pass any X input events on to Clutter / GTK+
- Date: Mon, 7 Apr 2014 15:22:43 +0000 (UTC)
commit e2b24092d6e7e2313d862e590bfaa4fb8f937c24
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Apr 6 15:32:30 2014 -0400
events: Don't pass any X input events on to Clutter / GTK+
src/core/events.c | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index 086268f..8546ce6 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -860,6 +860,17 @@ handle_input_xevent (MetaDisplay *display,
if (input_event == NULL)
return FALSE;
+ switch (input_event->evtype)
+ {
+ case XI_Enter:
+ case XI_Leave:
+ case XI_FocusIn:
+ case XI_FocusOut:
+ break;
+ default:
+ return FALSE;
+ }
+
modified = xievent_get_modified_window (display, input_event);
window = modified != None ? meta_display_lookup_x_window (display, modified) : NULL;
@@ -934,12 +945,11 @@ handle_input_xevent (MetaDisplay *display,
}
}
-
- /* Don't send FocusIn / FocusOut to Clutter */
- return TRUE;
+ break;
}
- return FALSE;
+ /* Don't pass these events through to Clutter / GTK+ */
+ return TRUE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]