[gnome-shell/wip/message-tray] messageTray: Fix showing the tray in the overview



commit 69176eaecc93f9e283c40d9ca886e3ff2f2d906d
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Jul 31 18:37:18 2012 +0200

    messageTray: Fix showing the tray in the overview
    
    While we don't need to shift the windows, we still want the tray to
    actually pop up.

 js/ui/messageTray.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index e000047..17c05d2 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2012,8 +2012,9 @@ const MessageTray = new Lang.Class({
     },
 
     _showTray: function() {
-        // Don't move the windows up if we are in the overview.
-        if (this._overviewVisible)
+        // Bail out if we are in the middle of tweening the tray or the
+        // windows.
+        if (this._tweening != 0)
             return;
 
         this._tween(this.actor, '_trayState', State.SHOWN,
@@ -2021,6 +2022,10 @@ const MessageTray = new Lang.Class({
                       time: ANIMATION_TIME,
                       transition: 'easeOutQuad' });
 
+        // Don't move the windows up if we are in the overview.
+        if (this._overviewVisible)
+            return;
+
         Tweener.addTween(global.window_group,
                          { y: -this.actor.height,
                            time: ANIMATION_TIME,



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