forge
Explore
Log in

Don't you dare go Hollow

layout: Remove unname_workspace() clean-up to Monitor

Browse files at this commit

1484175408b72fe6d267bc08036319969fc39ea1Ivan MolodetskikhParent: 8c33458
src/layout/mod.rsmodified+0 -3
@@ -1330,9 +1330,6 @@ impl<W: LayoutElement> Layout<W> {
1330 MonitorSet::Normal { monitors, .. } => {1330 MonitorSet::Normal { monitors, .. } => {
1331 for mon in monitors {1331 for mon in monitors {
1332 if mon.unname_workspace(id) {1332 if mon.unname_workspace(id) {
1333- if mon.workspace_switch.is_none() {
1334- mon.clean_up_workspaces();
1335- }
1336 return;1333 return;
1337 }1334 }
1338 }1335 }
src/layout/monitor.rsmodified+5 -0
@@ -596,6 +596,11 @@ impl<W: LayoutElement> Monitor<W> {
596 };596 };
597 597
598 ws.unname();598 ws.unname();
599+
600+ if self.workspace_switch.is_none() {
601+ self.clean_up_workspaces();
602+ }
603+
599 true604 true
600 }605 }
601 606