[gnome-shell] Revert "messageTray: Don't show the context-menu when the tray isn't open"



commit 811ee1d9895ae876d9499d712d26a8d67c2bbbf6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Apr 15 12:50:56 2013 -0400

    Revert "messageTray: Don't show the context-menu when the tray isn't open"
    
    This reverts commit 1bce210c516215ceb78a8b37833ab8140476b959.

 js/ui/messageTray.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 49c8037..3786928 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1722,9 +1722,6 @@ const MessageTray = new Lang.Class({
         this.actor.add_action(clickAction);
 
         clickAction.connect('clicked', Lang.bind(this, function(action) {
-            if (this._trayState != State.SHOWN)
-                return;
-
             let button = action.get_button();
             if (button == 3)
                 this._openContextMenu();
@@ -1735,7 +1732,7 @@ const MessageTray = new Lang.Class({
         clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) {
             switch (state) {
             case Clutter.LongPressState.QUERY:
-                return this._trayState == State.SHOWN;
+                return true;
             case Clutter.LongPressState.ACTIVATE:
                 this._openContextMenu();
             }


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