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



commit c39c280d7812ec20da762aac912a4018f5fdc378
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 |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index e000047..afce003 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2012,15 +2012,15 @@ const MessageTray = new Lang.Class({
     },
 
     _showTray: function() {
-        // Don't move the windows up if we are in the overview.
-        if (this._overviewVisible)
-            return;
-
         this._tween(this.actor, '_trayState', State.SHOWN,
                     { y: -this.actor.height,
                       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]