shell: Fix edge-cases on added output
This commit is contained in:
parent
b8e5dbea8f
commit
e43c0f648d
1 changed files with 5 additions and 3 deletions
|
|
@ -530,6 +530,10 @@ impl Workspaces {
|
|||
.partition(|w| w.preferrs_output(output));
|
||||
moved_workspaces.extend(preferrs);
|
||||
set.workspaces = doesnt;
|
||||
if set.workspaces.is_empty() {
|
||||
set.add_empty_workspace(workspace_state);
|
||||
}
|
||||
set.active = set.active.min(set.workspaces.len() - 1);
|
||||
}
|
||||
{
|
||||
let set = self.sets.get_mut(output).unwrap();
|
||||
|
|
@ -2821,9 +2825,7 @@ impl Shell {
|
|||
.map(mapped.clone(), Some(focus_stack.iter()), None);
|
||||
}
|
||||
ManagedLayer::Sticky => unreachable!(),
|
||||
_ => {
|
||||
workspace.floating_layer.map(mapped.clone(), geometry.loc)
|
||||
}
|
||||
_ => workspace.floating_layer.map(mapped.clone(), geometry.loc),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue