[gnome-shell] messageTray: Fix condition for adding the tray to CtrlAltTab
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Fix condition for adding the tray to CtrlAltTab
- Date: Mon, 23 Sep 2013 11:34:03 +0000 (UTC)
commit c8a07dd612c00e39ed9f59586e4efe3679c6ae74
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Sep 19 16:00:35 2013 +0200
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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index bc9136e..e98be02 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',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]