[gnome-shell/wip/msanchez/620106: 2/3] altTab: Don't activate an app it the icon is no longer available
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/msanchez/620106: 2/3] altTab: Don't activate an app it the icon is no longer available
- Date: Fri, 1 Dec 2017 21:31:23 +0000 (UTC)
commit 815302b4ac74e84e766c49efd1ec78c2731f5d44
Author: Mario Sanchez Prada <mario endlessm com>
Date: Thu Nov 30 20:53:39 2017 +0000
altTab: Don't activate an app it the icon is no longer available
https://bugzilla.gnome.org/show_bug.cgi?id=620106
js/ui/altTab.js | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index c4eee7d..3a70c84 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -254,11 +254,12 @@ var AppSwitcherPopup = new Lang.Class({
_finish : function(timestamp) {
let appIcon = this._items[this._selectedIndex];
- if (this._currentWindow < 0)
- appIcon.app.activate_window(appIcon.cachedWindows[0], timestamp);
- else if (appIcon.cachedWindows[this._currentWindow])
- Main.activateWindow(appIcon.cachedWindows[this._currentWindow], timestamp);
-
+ if (appIcon) {
+ if (this._currentWindow < 0)
+ appIcon.app.activate_window(appIcon.cachedWindows[0], timestamp);
+ else if (appIcon.cachedWindows[this._currentWindow])
+ Main.activateWindow(appIcon.cachedWindows[this._currentWindow], timestamp);
+ }
this.parent();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]