focus: Un-activate non-active workspaces
This commit is contained in:
parent
76863aaf9b
commit
fce52cb6a2
1 changed files with 11 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue