1
0
Fork 0
forked from wry/wry

tree: remove hidden, unused workspaces

This commit is contained in:
Julian Orth 2022-05-17 17:47:01 +02:00
parent 871827fdde
commit 70cc24107b
4 changed files with 45 additions and 0 deletions

View file

@ -47,6 +47,10 @@ impl WorkspaceNode {
self.container.set(Some(container.clone()));
}
pub fn is_empty(&self) -> bool {
self.stacked.is_empty() && self.fullscreen.get().is_none() && self.container.get().is_none()
}
pub fn stacked_visible(&self) -> bool {
self.visible.get() && self.fullscreen.get().is_none()
}