shell: Unset focused outputs on remove_output

This commit is contained in:
Victoria Brekenfeld 2024-12-13 16:23:09 +01:00
parent 9b4127555e
commit 2e1f6a4746

View file

@ -722,6 +722,9 @@ impl Workspaces {
if &seat.active_output() == output {
seat.set_active_output(&new_output);
}
if seat.focused_output().as_ref() == Some(output) {
seat.set_focused_output(None);
}
}
let new_set = self.sets.get_mut(&new_output).unwrap();