mirror of
https://github.com/YaLTeR/niri.git
synced 2025-10-05 16:12:47 +02: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, .. } => {
|
||||
for mon in monitors {
|
||||
if mon.unname_workspace(id) {
|
||||
if mon.workspace_switch.is_none() {
|
||||
mon.clean_up_workspaces();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@@ -596,6 +596,11 @@ impl<W: LayoutElement> Monitor<W> {
|
||||
};
|
||||
|
||||
ws.unname();
|
||||
|
||||
if self.workspace_switch.is_none() {
|
||||
self.clean_up_workspaces();
|
||||
}
|
||||
|
||||
true
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user