layout: Remove unname_workspace() clean-up to Monitor
Browse files at this commit1484175408b72fe6d267bc08036319969fc39ea1Parent: 8c334582 changed files +5 -3
- src/layout/mod.rs +0 -3
- src/layout/monitor.rs +5 -0
src/layout/mod.rsmodified+0 -3
| @@ -1330,9 +1330,6 @@ impl<W: LayoutElement> Layout<W> { | ||
| 1330 | 1330 | MonitorSet::Normal { monitors, .. } => { |
| 1331 | 1331 | for mon in monitors { |
| 1332 | 1332 | if mon.unname_workspace(id) { |
| 1333 | - if mon.workspace_switch.is_none() { | |
| 1334 | - mon.clean_up_workspaces(); | |
| 1335 | - } | |
| 1336 | 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 | 598 | ws.unname(); |
| 599 | + | |
| 600 | + if self.workspace_switch.is_none() { | |
| 601 | + self.clean_up_workspaces(); | |
| 602 | + } | |
| 603 | + | |
| 599 | 604 | true |
| 600 | 605 | } |
| 601 | 606 |