focus: Un-activate non-active workspaces

This commit is contained in:
Victoria Brekenfeld 2024-09-28 12:28:17 +02:00 committed by Victoria Brekenfeld
parent 76863aaf9b
commit fce52cb6a2

View file

@ -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);
}
@ -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();
}
}
}
}
}