mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 03:26:54 +00:00
Fix workspace stack order
This commit is contained in:
@@ -67,6 +67,15 @@ function enable() {
|
||||
'workspace-removed',
|
||||
utils.dynamic_function_ref('workspaceRemoved', spaces)),
|
||||
|
||||
global.screen.connect(
|
||||
'workspace-switched',
|
||||
(screen, from, to) => {
|
||||
let f = spaces.get(global.screen.get_workspace_by_index(from));
|
||||
let t = spaces.get(global.screen.get_workspace_by_index(to));
|
||||
Main.uiGroup.set_child_above_sibling(t.cloneContainer,
|
||||
f.cloneContainer);
|
||||
}),
|
||||
|
||||
// Reset primary when monitors change
|
||||
global.screen.connect("monitors-changed",
|
||||
function(screen) {
|
||||
|
||||
Reference in New Issue
Block a user