shell: Don't remove workspaces during animations
This commit is contained in:
parent
abd27e6aab
commit
19d5ed92f4
1 changed files with 8 additions and 8 deletions
|
|
@ -288,16 +288,16 @@ impl WorkspaceSet {
|
|||
if Instant::now().duration_since(start).as_millis() >= ANIMATION_DURATION.as_millis() {
|
||||
self.previously_active = None;
|
||||
}
|
||||
}
|
||||
|
||||
match self.amount {
|
||||
WorkspaceAmount::Dynamic => self.ensure_last_empty(state, outputs),
|
||||
WorkspaceAmount::Static(len) => {
|
||||
self.ensure_static(len as usize, state, toplevel_info, outputs)
|
||||
} else {
|
||||
match self.amount {
|
||||
WorkspaceAmount::Dynamic => self.ensure_last_empty(state, outputs),
|
||||
WorkspaceAmount::Static(len) => {
|
||||
self.ensure_static(len as usize, state, toplevel_info, outputs)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
self.workspaces[self.active].refresh();
|
||||
self.workspaces[self.active].refresh();
|
||||
}
|
||||
}
|
||||
|
||||
fn ensure_last_empty<'a>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue