Blame SOURCES/0001-altTab-Don-t-error-out-if-we-don-t-have-windows-for-.patch

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