mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-07-06 17:10:03 +00:00
liveAltTab: Only show scratch windows when scratch layer is focused
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user