[gnome-shell] AltTabSwitcherPopup: check the number of items after creating the popup child
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] AltTabSwitcherPopup: check the number of items after creating the popup child
- Date: Sat, 26 Oct 2013 14:30:23 +0000 (UTC)
commit f3b7f61e54c2cc88326786ade1acf03eff3968f6
Author: Sebastien Lafargue <slaf66 gmail com>
Date: Fri Oct 25 19:02:59 2013 +0200
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 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 779ae7b..b39cc81 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;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]