[gnome-shell/wip/wayland: 369/376] Don't pass on X events to Clutter
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/wayland: 369/376] Don't pass on X events to Clutter
- Date: Wed, 21 Aug 2013 16:23:14 +0000 (UTC)
commit 1c2c71a056e8540984afeae13f56a9150c194cb3
Author: Neil Roberts <neil linux intel com>
Date: Wed Mar 14 17:14:46 2012 +0000
Don't pass on X events to Clutter
The Mutter plugin manager has now been changed so that it itself will
pass on the events through Clutter so there is no need to do this in
Gnome Shell anymore.
src/gnome-shell-plugin.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c
index 6571b39..8c5f157 100644
--- a/src/gnome-shell-plugin.c
+++ b/src/gnome-shell-plugin.c
@@ -395,6 +395,11 @@ gnome_shell_plugin_xevent_filter (MetaPlugin *plugin,
if (_shell_global_check_xdnd_event (shell_plugin->global, xev))
return TRUE;
+#ifdef HAVE_WAYLAND
+ if (meta_is_wayland_compositor ())
+ return FALSE;
+#endif
+
return clutter_x11_handle_event (xev) != CLUTTER_X11_FILTER_CONTINUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]