mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 11:46:57 +00:00
Only set ensure selectedWindow if there's windows in the workspace
This broke enable and further initalization.
This commit is contained in:
@@ -590,8 +590,12 @@ add_all_from_workspace = (workspace) => {
|
||||
}
|
||||
})
|
||||
|
||||
space.selectedWindow = global.display.get_tab_list(Meta.TabList.NORMAL, workspace)[0];
|
||||
ensure_viewport(space, space.selectedWindow);
|
||||
let tabList = global.display.get_tab_list(Meta.TabList.NORMAL, workspace)
|
||||
.filter(metaWindow => { return space.indexOf(metaWindow) !== -1; });
|
||||
if (tabList[0]) {
|
||||
space.selectedWindow = tabList[0]
|
||||
ensure_viewport(space, space.selectedWindow);
|
||||
}
|
||||
}
|
||||
|
||||
workspace_added = (screen, index) => {
|
||||
|
||||
Reference in New Issue
Block a user