From d1c72e1e4c0340a0c07efc7833afe271c420ec38 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 30 Nov 2012 02:53:29 -0500 Subject: [PATCH] overview: also hide the messsage tray ghost when switching to search --- js/ui/overview.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/js/ui/overview.js b/js/ui/overview.js index f7459c940..e9edbd1a7 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(); @@ -543,6 +552,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();