[mutter] plugin: Don't pass events to Clutter
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] plugin: Don't pass events to Clutter
- Date: Tue, 22 Apr 2014 18:17:52 +0000 (UTC)
commit bb4896f1afffd59db0b82a4c667d43faeab0e1fc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Apr 22 12:42:14 2014 -0400
plugin: Don't pass events to Clutter
We do this ourselves in the backend
src/compositor/meta-plugin.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/compositor/meta-plugin.c b/src/compositor/meta-plugin.c
index d7c4f11..8d71e69 100644
--- a/src/compositor/meta-plugin.c
+++ b/src/compositor/meta-plugin.c
@@ -81,18 +81,8 @@ _meta_plugin_xevent_filter (MetaPlugin *plugin,
{
MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin);
- /* When mutter is running as a wayland compositor, things like input
- * events just come directly from clutter so it won't have disabled
- * clutter's event retrieval and won't need to forward it events (if
- * it did it would lead to recursion). Also when running as a
- * wayland compositor we shouldn't be assuming that we're running
- * with the clutter x11 backend.
- */
-
- if (klass->xevent_filter && klass->xevent_filter (plugin, xev))
- return TRUE;
- else if (!meta_is_wayland_compositor ())
- return clutter_x11_handle_event (xev) != CLUTTER_X11_FILTER_CONTINUE;
+ if (klass->xevent_filter)
+ return klass->xevent_filter (plugin, xev);
else
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]