[gnome-shell/wip/message-tray: 20/21] messageTray: Add it to the ctrl+alt+tab list when in the overview
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 20/21] messageTray: Add it to the ctrl+alt+tab list when in the overview
- Date: Sat, 11 Aug 2012 00:59:04 +0000 (UTC)
commit 2b55e190529cab5d4f4064aef7ba19d17aeccccb
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Aug 9 02:30:13 2012 +0200
messageTray: Add it to the ctrl+alt+tab list when in the overview
js/ui/messageTray.js | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 4642d27..45caff0 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -14,6 +14,7 @@ const Signals = imports.signals;
const St = imports.gi.St;
const BoxPointer = imports.ui.boxpointer;
+const CtrlAltTab = imports.ui.ctrlAltTab;
const GnomeSession = imports.misc.gnomeSession;
const GrabHelper = imports.ui.grabHelper;
const Main = imports.ui.main;
@@ -1847,9 +1848,13 @@ const MessageTray = new Lang.Class({
transition: 'easeOutQuad'
});
- // Don't move the windows up and grab if we are in the overview.
- if (this._overviewVisible)
+ // Don't move the windows up and grab if we are in the overview,
+ // but show the tray in the ctrl+alt+tab list.
+ if (this._overviewVisible) {
+ Main.ctrlAltTabManager.addGroup(this.actor, _("Message Tray"), 'start-here',
+ { sortGroup: CtrlAltTab.SortGroup.BOTTOM });
return;
+ }
this._grabHelper.grab({ actor: this.actor,
modal: true,
@@ -1908,8 +1913,12 @@ const MessageTray = new Lang.Class({
transition: 'easeOutQuad'
});
- if (!this._desktopClone)
+ // If we are coming back from the overview, there are no windows
+ // to be moved. Just remove the tray from the ctrl+alt+tab list.
+ if (!this._desktopClone) {
+ Main.ctrlAltTabManager.removeGroup(this.actor);
return;
+ }
let geometry = this._desktopClone.clip;
Tweener.addTween(this._desktopClone,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]