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
This commit is contained in:
Florian Müllner 2013-09-19 16:00:35 +02:00
parent 02c99e4b25
commit c8a07dd612

View File

@ -1805,7 +1805,8 @@ const MessageTray = new Lang.Class({
}, },
_sessionUpdated: function() { _sessionUpdated: function() {
if ((Main.sessionMode.isLocked || Main.sessionMode.isGreeter) && this._inCtrlAltTab) { if (Main.sessionMode.isLocked || Main.sessionMode.isGreeter) {
if (this._inCtrlAltTab)
Main.ctrlAltTabManager.removeGroup(this._summary); Main.ctrlAltTabManager.removeGroup(this._summary);
this._inCtrlAltTab = false; this._inCtrlAltTab = false;
} else if (!this._inCtrlAltTab) { } else if (!this._inCtrlAltTab) {