[gnome-shell] No need to Check for grabbed menus on hot corner enter/click



commit e3511127c701dd8691ec0e9bf2c4383c82bdad47
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Feb 23 11:09:46 2011 +0100

    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 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 4cedb44..c331f4d 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();
          }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]