[gnome-shell/wip/re-search-v2: 27/29] overview: also hide the messsage tray ghost when switching to search



commit c76a3121d3398486f84f894f909736ac326ad98e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Nov 30 02:53:29 2012 -0500

    overview: also hide the messsage tray ghost when switching to search

 js/ui/overview.js |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 2a0d6f1..4be363c 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -304,11 +304,20 @@ const Overview = new Lang.Class({
         let dashVisible = !searchActive || inDrag;
         let thumbnailsVisible = (!searchActive && !appsActive) || inDrag;
         let trayVisible = !searchActive;
+        let trayGhostVisible = trayVisible || dashVisible;
 
-        if (dashVisible)
+        if (dashVisible) {
             this._dash.show();
-        else
+            this._messageTrayGhost.visible = trayGhostVisible;
+        } else {
+            let visibleId = this._dash.actor.connect('notify::visible', Lang.bind(this,
+                function() {
+                    this._dash.actor.disconnect(visibleId);
+                    if (!trayVisible && !this._dash.actor.visible)
+                        this._messageTrayGhost.hide();
+                }));
             this._dash.hide();
+        }
 
         if (thumbnailsVisible)
             this._thumbnailsBox.show();
@@ -544,6 +553,7 @@ const Overview = new Lang.Class({
         // Disable unredirection while in the overview
         Meta.disable_unredirect_for_screen(global.screen);
         global.window_group.hide();
+        this._messageTrayGhost.show();
         this._overview.show();
         this._background.show();
         this._viewSelector.show();



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