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:
Owen W. Taylor 2012-10-18 14:54:08 -04:00 committed by Jasper St. Pierre
parent 62dbaa89ca
commit f258556cec

View File

@ -305,8 +305,8 @@ meta_plugin_manager_xevent_filter (MetaPluginManager *plugin_mgr,
* of that plugin to pass events to Clutter. Otherwise, we send the * of that plugin to pass events to Clutter. Otherwise, we send the
* event directly to Clutter ourselves. * event directly to Clutter ourselves.
*/ */
if (klass->xevent_filter && klass->xevent_filter (plugin, xev)) if (klass->xevent_filter)
return TRUE; return klass->xevent_filter (plugin, xev);
else else
return clutter_x11_handle_event (xev) != CLUTTER_X11_FILTER_CONTINUE; return clutter_x11_handle_event (xev) != CLUTTER_X11_FILTER_CONTINUE;
} }