Skip to content

Commit

Permalink
focus: Un-activate non-active workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Dec 5, 2024
1 parent 76863aa commit fce52cb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/shell/focus/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl Shell {
m.window.configure();
}

let workspace = self.workspaces.active_mut(&output);
let workspace = &mut set.workspaces[set.active];
for focused in focused_windows.iter() {
raise_with_children(&mut workspace.floating_layer, focused);
}
Expand All @@ -215,6 +215,16 @@ impl Shell {
m.window.set_activated(false);
m.window.configure();
}

for (i, workspace) in set.workspaces.iter().enumerate() {
if i == set.active {
continue;
}
for window in workspace.mapped() {
window.set_activated(false);
window.configure();
}
}
}
}
}
Expand Down

0 comments on commit fce52cb

Please sign in to comment.