Prune unused empty workspaces while preserving visible outputs
This commit is contained in:
1 parent
0295b5be3e
commit
f87039562b
5 files changed
+148
-2
No files matched your search
@@ -507,7 +507,11 @@ impl Ferese {
|
||||
.map(|workspace| workspace.id)
|
||||
{
|
||||
self.activate_managed_workspace(workspace);
|
||||
} else if next {
|
||||
} else if next
|
||||
&& self.workspaces.workspace(current).is_some_and(|workspace| {
|
||||
workspace.layout.window_ids().next().is_some() || !workspace.floating.is_empty()
|
||||
})
|
||||
{
|
||||
let next_number = self
|
||||
.workspaces
|
||||
.iter()
|
||||
|
||||
Reference in new issue
Block a user