diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-09-25 18:15:46 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-10-02 09:33:08 +0300 |
| commit | 1484175408b72fe6d267bc08036319969fc39ea1 (patch) | |
| tree | abd49e93744bbd38ca3de2aa5c5211f61f331995 /src/layout | |
| parent | 8c3345807ace2c2b9afcec550277a822e3e3f701 (diff) | |
| download | niri-1484175408b72fe6d267bc08036319969fc39ea1.tar.gz niri-1484175408b72fe6d267bc08036319969fc39ea1.tar.bz2 niri-1484175408b72fe6d267bc08036319969fc39ea1.zip | |
layout: Remove unname_workspace() clean-up to Monitor
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 3 | ||||
| -rw-r--r-- | src/layout/monitor.rs | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 442e31f4..60c0f1fe 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -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; } } diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 21cbfcab..600907cc 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -596,6 +596,11 @@ impl<W: LayoutElement> Monitor<W> { }; ws.unname(); + + if self.workspace_switch.is_none() { + self.clean_up_workspaces(); + } + true } |
