mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 09:46:08 -05:00
MetaPluginManager: don't send events to Clutter twice
When support for multiple plugins was removed, the logic that was supposed to send events to Clutter directly *only if there is no filter function from a plugin* was broken, so events were being sent to Clutter twice if Clutter didn't consume them the first time. https://bugzilla.gnome.org/show_bug.cgi?id=686406
This commit is contained in:
parent
62dbaa89ca
commit
f258556cec
@ -305,8 +305,8 @@ meta_plugin_manager_xevent_filter (MetaPluginManager *plugin_mgr,
|
||||
* of that plugin to pass events to Clutter. Otherwise, we send the
|
||||
* event directly to Clutter ourselves.
|
||||
*/
|
||||
if (klass->xevent_filter && klass->xevent_filter (plugin, xev))
|
||||
return TRUE;
|
||||
if (klass->xevent_filter)
|
||||
return klass->xevent_filter (plugin, xev);
|
||||
else
|
||||
return clutter_x11_handle_event (xev) != CLUTTER_X11_FILTER_CONTINUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user