diff --git a/komorebi/src/workspace.rs b/komorebi/src/workspace.rs index 9fca6ec0..173dffed 100644 --- a/komorebi/src/workspace.rs +++ b/komorebi/src/workspace.rs @@ -480,6 +480,9 @@ impl Workspace { return Ok(()); } + // make sure we are never holding on to empty containers + self.containers_mut().retain(|c| !c.windows().is_empty()); + let container_padding = self .container_padding() .or(self.globals().container_padding)