From d6c049a8c942288adb5c647cea3746bc958a07b1 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Thu, 8 Oct 2015 18:17:54 +0200 Subject: [PATCH] altTab: Don't error out if we don't have windows for an app We are currently erroring out when the tab chain doesn't contain at least one window for an app which might happen for windows that don't take focus like xeyes. This leaves us in a state where we can't show the switcher at all. Let's just ignore these apps instead of looking broken. --- js/ui/altTab.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 7d90ac530..8765f1911 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -448,8 +448,6 @@ const AppSwitcher = new Lang.Class({ }); if (appIcon.cachedWindows.length > 0) this._addIcon(appIcon); - else if (workspace == null) - throw new Error('%s appears to be running, but doesn\'t have any windows'.format(appIcon.app.get_name())); } this._curApp = -1;