mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
layout: Remove unname_workspace() clean-up to Monitor
This commit is contained in:
@@ -1330,9 +1330,6 @@ impl<W: LayoutElement> Layout<W> {
|
|||||||
MonitorSet::Normal { monitors, .. } => {
|
MonitorSet::Normal { monitors, .. } => {
|
||||||
for mon in monitors {
|
for mon in monitors {
|
||||||
if mon.unname_workspace(id) {
|
if mon.unname_workspace(id) {
|
||||||
if mon.workspace_switch.is_none() {
|
|
||||||
mon.clean_up_workspaces();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -596,6 +596,11 @@ impl<W: LayoutElement> Monitor<W> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ws.unname();
|
ws.unname();
|
||||||
|
|
||||||
|
if self.workspace_switch.is_none() {
|
||||||
|
self.clean_up_workspaces();
|
||||||
|
}
|
||||||
|
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user