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
This commit is contained in:
Sebastien Lafargue 2013-10-25 19:02:59 +02:00 committed by Giovanni Campagna
parent d47ecf19f5
commit f3b7f61e54

View File

@ -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;
},