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> {
13301330 MonitorSet::Normal { monitors, .. } => {
13311331 for mon in monitors {
13321332 if mon.unname_workspace(id) {
1333- if mon.workspace_switch.is_none() {
1334- mon.clean_up_workspaces();
1335- }
13361333 return;
13371334 }
13381335 }
src/layout/monitor.rsmodified+5 -0
@@ -596,6 +596,11 @@ impl<W: LayoutElement> Monitor<W> {
596596 };
597597
598598 ws.unname();
599+
600+ if self.workspace_switch.is_none() {
601+ self.clean_up_workspaces();
602+ }
603+
599604 true
600605 }
601606