From 8929f43ad9cf718eb5066971ece6f0910abbc0e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20Fr=C3=A9cinaux?= Date: Thu, 8 Oct 2009 13:14:15 +0200 Subject: [PATCH] [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 --- js/ui/altTab.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 90e7562ce..600e1cc33 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); }