[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
This commit is contained in:
Steve Frécinaux 2009-10-08 13:14:15 +02:00
parent a26b0b60d1
commit 8929f43ad9

View File

@ -248,9 +248,11 @@ AltTabPopup.prototype = {
}, },
_select : function(app, window, noTimeout) { _select : function(app, window, noTimeout) {
if ((app != this._currentApp || !window) && this._thumbnails) { if (app != this._currentApp || !window) {
this._thumbnails.actor.destroy(); if (this._thumbnails) {
this._thumbnails = null; this._thumbnails.actor.destroy();
this._thumbnails = null;
}
this._appSwitcher.showArrow(-1); this._appSwitcher.showArrow(-1);
} }