No need to Check for grabbed menus on hot corner enter/click

We never get enter events anyway due to the menu code, and if
the user clicks on a non-menu the menu is removed and ungrabbed
before the target actor gets the event anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=642881
This commit is contained in:
Alexander Larsson 2011-02-23 11:09:46 +01:00
parent fbf7528728
commit e3511127c7

View File

@ -1040,8 +1040,6 @@ Panel.prototype = {
},
_onHotCornerEntered : function() {
if (this._menus.grabbed)
return false;
if (!this._hotCornerEntered) {
this._hotCornerEntered = true;
if (!Main.overview.animationInProgress) {
@ -1055,8 +1053,6 @@ Panel.prototype = {
},
_onHotCornerClicked : function() {
if (this._menus.grabbed)
return false;
if (!Main.overview.animationInProgress) {
this._maybeToggleOverviewOnClick();
}