[gnome-shell] [AppSwitcher] Keep track of the selected window for each app
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [AppSwitcher] Keep track of the selected window for each app
- Date: Fri, 25 Sep 2009 17:34:21 +0000 (UTC)
commit f5f22b3935f2cd47b33f733c01e51e19d5df4623
Author: Dan Winship <danw gnome org>
Date: Wed Sep 23 12:18:18 2009 -0400
[AppSwitcher] Keep track of the selected window for each app
Rather than selecting windows[0] each time the cycle returns to an
app, select whatever window of that app was selected last time around.
https://bugzilla.gnome.org/show_bug.cgi?id=590563
js/ui/altTab.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 333937c..ca3f662 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -46,6 +46,7 @@ AltTabPopup.prototype = {
this.actor.append(gcenterbox, Big.BoxPackFlags.NONE);
this._icons = [];
+ this._currentWindows = [];
this._haveModal = false;
this._selected = 0;
this._highlightedWindow = null;
@@ -67,6 +68,7 @@ AltTabPopup.prototype = {
appIcon.actor.border = 2;
this._icons.push(appIcon);
+ this._currentWindows.push(appIcon.windows[0]);
// Add it to the grid
if (!this._gridRow || this._gridRow.get_children().length == POPUP_NUM_COLUMNS) {
@@ -212,7 +214,7 @@ AltTabPopup.prototype = {
this._selected = (this._selected + this._icons.length + delta) % this._icons.length;
this._icons[this._selected].setHighlight(true);
- this._highlightWindow(this._icons[this._selected].windows[0]);
+ this._highlightWindow(this._currentWindows[this._selected]);
},
_menuPoppedUp : function(icon, menu) {
@@ -243,6 +245,7 @@ AltTabPopup.prototype = {
_highlightWindow : function(metaWin) {
this._highlightedWindow = metaWin;
+ this._currentWindows[this._selected] = metaWin;
this._lightbox.highlight(this._highlightedWindow.get_compositor_private());
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]