shell: Don't remove workspaces during animations

This commit is contained in:
Victoria Brekenfeld 2023-09-14 15:30:08 +02:00
parent abd27e6aab
commit 19d5ed92f4

View file

@ -288,8 +288,7 @@ impl WorkspaceSet {
if Instant::now().duration_since(start).as_millis() >= ANIMATION_DURATION.as_millis() {
self.previously_active = None;
}
}
} else {
match self.amount {
WorkspaceAmount::Dynamic => self.ensure_last_empty(state, outputs),
WorkspaceAmount::Static(len) => {
@ -299,6 +298,7 @@ impl WorkspaceSet {
self.workspaces[self.active].refresh();
}
}
fn ensure_last_empty<'a>(
&mut self,