diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 94c36eb77..7cab84391 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -379,13 +379,17 @@ MessageTray.prototype = { this._notificationTimeoutId = 0; this.actor.show(); - Main.chrome.addActor(this.actor, { affectsStruts: false }); + Main.chrome.addActor(this.actor, { affectsStruts: false, + visibleInOverview: true }); Main.chrome.trackActor(this._notificationBin, { affectsStruts: false }); global.connect('screen-size-changed', Lang.bind(this, this._setSizePosition)); this._setSizePosition(); + Main.overview.connect('shown', Lang.bind(this, this._updateState)); + Main.overview.connect('hidden', Lang.bind(this, this._updateState)); + this._sources = {}; this._icons = {}; }, @@ -524,7 +528,7 @@ MessageTray.prototype = { } // Summary - let summarySummoned = this._pointerInSummary; + let summarySummoned = this._pointerInSummary || Main.overview.visible; let summaryPinned = this._summaryTimeoutId != 0 || this._pointerInTray || summarySummoned; let notificationsVisible = (this._notificationState == State.SHOWING || this._notificationState == State.SHOWN);