liveAltTab: Only show scratch windows when scratch layer is focused

This commit is contained in:
Tor Hedin Brønner
2018-01-10 21:51:03 +01:00
parent 56708fee15
commit ba0642acd0

View File

@@ -131,11 +131,7 @@ var LiveAltTab = Lang.Class({
_getWindowList: function () {
let tabList = global.display.get_tab_list(Meta.TabList.NORMAL_ALL, null);
if (Scratch.isScratchActive()) {
// Force scratch windows on top as a poor mans substitute for the
// scratch layer actually changing the MRU list
let scratchWindows = Scratch.getScratchWindows();
let normalWindows = tabList.filter(mw => !Scratch.isScratchWindow(mw))
return scratchWindows.concat(normalWindows);
return Scratch.getScratchWindows();
} else {
return tabList;
}