Skip to content

Commit

Permalink
shell: Unset focused outputs on remove_output
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Dec 13, 2024
1 parent 9b41275 commit 2e1f6a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2e1f6a4

Please sign in to comment.