From 5f5dc8327f4e719c5d9176423240aba5cda602ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 25 Feb 2015 18:08:53 +0100 Subject: [PATCH] messageTray: Fix actor visibility The actor is supposed to be hidden while no notification banner is displayed, and in addition to that when banners are temporarily blocked (because the calendar is open). However the current code always shows the actor when banners are not blocked, fix that. https://bugzilla.gnome.org/show_bug.cgi?id=744912 --- js/ui/messageTray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 149943c2f..139b165fc 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1796,7 +1796,7 @@ const MessageTray = new Lang.Class({ // _updateState() figures out what (if anything) needs to be done // at the present time. _updateState: function() { - this.actor.visible = !this._bannerBlocked; + this.actor.visible = !this._bannerBlocked && this._banner != null; if (this._bannerBlocked) return;