From e3511127c701dd8691ec0e9bf2c4383c82bdad47 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 23 Feb 2011 11:09:46 +0100 Subject: [PATCH] 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 --- js/ui/panel.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index 4cedb442b..c331f4dff 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -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(); }