From 2e1f6a474603081c8c859bd50e8dc911ddc94fea Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Fri, 13 Dec 2024 16:23:09 +0100 Subject: [PATCH] shell: Unset focused outputs on `remove_output` --- src/shell/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 8e52c73c..28b87e61 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -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();