summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Frécinaux <code@istique.net>2009-10-08 11:14:15 (GMT)
committerSteve Frécinaux <code@istique.net>2009-10-08 11:56:47 (GMT)
commit8929f43ad9cf718eb5066971ece6f0910abbc0e9 (patch)
tree08b8c0949252e43e1d7631aaeaad485f398cb3fa
parenta26b0b60d1eed6e44ece2d14472847eafe87d231 (diff)
downloadgnome-shell-8929f43ad9cf718eb5066971ece6f0910abbc0e9.tar.gz
gnome-shell-8929f43ad9cf718eb5066971ece6f0910abbc0e9.tar.xz
[AppSwitcher] Fix hiding the arrow on application change.
The down arrow is shown when an application with more than one window is selected, but the window list is not always displayed. This patch fixes the fact that the arrow was not hidden when one focus an app with a single window when coming from an app with multiple windows, if the window list was not displayed. https://bugzilla.gnome.org/show_bug.cgi?id=597791
-rw-r--r--js/ui/altTab.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 90e7562..600e1cc 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -248,9 +248,11 @@ AltTabPopup.prototype = {
},
_select : function(app, window, noTimeout) {
- if ((app != this._currentApp || !window) && this._thumbnails) {
- this._thumbnails.actor.destroy();
- this._thumbnails = null;
+ if (app != this._currentApp || !window) {
+ if (this._thumbnails) {
+ this._thumbnails.actor.destroy();
+ this._thumbnails = null;
+ }
this._appSwitcher.showArrow(-1);
}