panel: Don't propagate button-release-event in _onCornerClicked()

Since both the hot corner's ClutterGroup and the hot corner's
ClutterRectangle button-release-event is connected to
_onCornerClicked() we must handle it there by returning 'true' to
Clutter or else _onCornerClicked() is called twice which defeats the
HOT_CORNER_ACTIVATION_TIMEOUT logic.

https://bugzilla.gnome.org/show_bug.cgi?id=649427
This commit is contained in:
Rui Matos 2011-05-05 16:09:07 +01:00 committed by Owen W. Taylor
parent 0d92f2b0c5
commit f4e6f7074e

View File

@ -776,7 +776,7 @@ HotCorner.prototype = {
_onCornerClicked : function() { _onCornerClicked : function() {
if (!Main.overview.animationInProgress) if (!Main.overview.animationInProgress)
this.maybeToggleOverviewOnClick(); this.maybeToggleOverviewOnClick();
return false; return true;
}, },
_onCornerLeft : function(actor, event) { _onCornerLeft : function(actor, event) {