mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-16 22:13:22 +01:00
feat(wm): drop empty containers on ws update
We shouldn't ever have empty containers, but never say never because someone on the Discord has an empty container with no Windows that continues to take up a tile. This commit adds a call to drop all containers without any windows whenever Workspace::update is called.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user