Skip to content

Commit

Permalink
workspace: do not show inactive hack session windows
Browse files Browse the repository at this point in the history
They should not appear as separate windows.
  • Loading branch information
cosimoc committed Nov 15, 2018
1 parent caaf10a commit 485e31c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions js/ui/altTab.js
Expand Up @@ -644,8 +644,8 @@ var AppIcon = new Lang.Class({
});
},

set cachedWindows(v) {
this._cachedWindows = v;
cacheWindowList: function(windowList) {
this._cachedWindows = windowList;
}
});

Expand All @@ -670,9 +670,10 @@ var AppSwitcher = new Lang.Class({
let appIcon = new AppIcon(apps[i]);
// Cache the window list now; we don't handle dynamic changes here,
// and we don't want to be continually retrieving it
appIcon.cachedWindows = allWindows.filter(function(w) {
let windowList = allWindows.filter(function(w) {
return windowTracker.get_window_app (w) == appIcon.app;
});
appIcon.cacheWindowList(windowList);
if (appIcon.cachedWindows.length > 0)
this._addIcon(appIcon);
}
Expand Down
2 changes: 1 addition & 1 deletion js/ui/workspace.js
Expand Up @@ -1826,7 +1826,7 @@ var Workspace = new Lang.Class({

// Tests if @win should be shown in the Overview
_isOverviewWindow : function (win) {
return !win.get_meta_window().skip_taskbar;
return !win.get_meta_window().skip_taskbar && !win.get_meta_window()._hackIsInactiveWindow;
},

// Create a clone of a (non-desktop) window and add it to the window list
Expand Down

0 comments on commit 485e31c

Please sign in to comment.