layout: Remove unname_workspace() clean-up to Monitor

This commit is contained in:
Ivan Molodetskikh
2025-09-25 18:15:46 +03:00
parent 8c3345807a
commit 1484175408
2 changed files with 5 additions and 3 deletions

View File

@@ -1330,9 +1330,6 @@ impl<W: LayoutElement> Layout<W> {
MonitorSet::Normal { monitors, .. } => {
for mon in monitors {
if mon.unname_workspace(id) {
if mon.workspace_switch.is_none() {
mon.clean_up_workspaces();
}
return;
}
}

View File

@@ -596,6 +596,11 @@ impl<W: LayoutElement> Monitor<W> {
};
ws.unname();
if self.workspace_switch.is_none() {
self.clean_up_workspaces();
}
true
}