plugin: Don't pass events to Clutter

We do this ourselves in the backend
This commit is contained in:
Jasper St. Pierre 2014-04-22 12:42:14 -04:00
parent a17b86dfbe
commit bb4896f1af

View File

@ -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;
}