From 5681447508f44b49781b418cd4f1667176a5ea8d Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 20 Dec 2023 20:21:43 +0000 Subject: [PATCH] shell: Consider sticky_layer animation state --- src/shell/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 5b92931b..4fe79b71 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -1372,7 +1372,7 @@ impl Shell { self.workspaces .sets .values() - .any(|set| set.previously_active.is_some()) + .any(|set| set.previously_active.is_some() || set.sticky_layer.animations_going()) || !matches!(self.overview_mode, OverviewMode::None) || !matches!(self.resize_mode, ResizeMode::None) || self @@ -1383,6 +1383,9 @@ impl Shell { pub fn update_animations(&mut self) -> HashMap { let mut clients = HashMap::new(); + for set in self.workspaces.sets.values_mut() { + set.sticky_layer.update_animation_state(); + } for workspace in self.workspaces.spaces_mut() { clients.extend(workspace.update_animations()); }