Prune unused empty workspaces while preserving visible outputs

This commit is contained in:
Samuel Onoja committed 2026-09-27 12:16:50 +01:00
1 parent 0295b5be3e
commit f87039562b
5 files changed
+148 -2

No files matched your search

+5 -1
View File
@@ -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()