From f3b7f61e54c2cc88326786ade1acf03eff3968f6 Mon Sep 17 00:00:00 2001 From: Sebastien Lafargue Date: Fri, 25 Oct 2013 19:02:59 +0200 Subject: [PATCH] AltTabSwitcherPopup: check the number of items after creating the popup child The popup can be empty if the alt-tab switcher is configured in workspace-only mode, even if there are applications running. https://bugzilla.gnome.org/show_bug.cgi?id=710745 --- js/ui/altTab.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 779ae7b55..b39cc817e 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -106,6 +106,8 @@ const AppSwitcherPopup = new Lang.Class({ this._switcherList = new AppSwitcher(apps, this); this._items = this._switcherList.icons; + if (this._items.length == 0) + return false; return true; }, @@ -375,6 +377,9 @@ const WindowSwitcherPopup = new Lang.Class({ this._switcherList = new WindowList(windows, mode); this._items = this._switcherList.icons; + if (this._items.length == 0) + return false; + return true; },