aboutsummaryrefslogtreecommitdiff
path: root/src/layout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/layout.rs b/src/layout.rs
index 4a272f9d..f878ed9e 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -1328,6 +1328,11 @@ impl<W: LayoutElement> Monitor<W> {
}
}
+ pub fn are_animations_ongoing(&self) -> bool {
+ self.workspace_idx_anim.is_some()
+ || self.workspaces.iter().any(|ws| ws.are_animations_ongoing())
+ }
+
pub fn update_config(&mut self, config: &Config) {
for ws in &mut self.workspaces {
ws.update_config(config);
@@ -1464,6 +1469,10 @@ impl<W: LayoutElement> Workspace<W> {
}
}
+ pub fn are_animations_ongoing(&self) -> bool {
+ self.view_offset_anim.is_some()
+ }
+
pub fn update_config(&mut self, config: &Config) {
let c = &config.focus_ring;
self.focus_ring.is_off = c.off;