From c8a07dd612c00e39ed9f59586e4efe3679c6ae74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 19 Sep 2013 16:00:35 +0200 Subject: [PATCH] messageTray: Fix condition for adding the tray to CtrlAltTab With the current condition, we wrongly add the message tray to CtrlAltTab if we start up locked or as greeter. https://bugzilla.gnome.org/show_bug.cgi?id=708380 --- js/ui/messageTray.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index bc9136eb7..e98be02f7 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1805,8 +1805,9 @@ const MessageTray = new Lang.Class({ }, _sessionUpdated: function() { - if ((Main.sessionMode.isLocked || Main.sessionMode.isGreeter) && this._inCtrlAltTab) { - Main.ctrlAltTabManager.removeGroup(this._summary); + if (Main.sessionMode.isLocked || Main.sessionMode.isGreeter) { + if (this._inCtrlAltTab) + Main.ctrlAltTabManager.removeGroup(this._summary); this._inCtrlAltTab = false; } else if (!this._inCtrlAltTab) { Main.ctrlAltTabManager.addGroup(this._summary, _("Message Tray"), 'user-available-symbolic',