mirror of
https://github.com/brl/mutter.git
synced 2025-04-13 13:49:38 +00:00
plugin: Don't pass events to Clutter
We do this ourselves in the backend
This commit is contained in:
parent
a17b86dfbe
commit
bb4896f1af
@ -81,18 +81,8 @@ _meta_plugin_xevent_filter (MetaPlugin *plugin,
|
|||||||
{
|
{
|
||||||
MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin);
|
MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin);
|
||||||
|
|
||||||
/* When mutter is running as a wayland compositor, things like input
|
if (klass->xevent_filter)
|
||||||
* events just come directly from clutter so it won't have disabled
|
return klass->xevent_filter (plugin, xev);
|
||||||
* 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;
|
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user