diff options
Diffstat (limited to 'src/layout.rs')
| -rw-r--r-- | src/layout.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout.rs b/src/layout.rs index a85b7dd7..41dc0d4a 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -1634,6 +1634,11 @@ impl<W: LayoutElement> Monitor<W> { || self.workspaces.iter().any(|ws| ws.are_animations_ongoing()) } + pub fn are_transitions_ongoing(&self) -> bool { + self.workspace_switch.is_some() + || self.workspaces.iter().any(|ws| ws.are_animations_ongoing()) + } + fn update_config(&mut self, options: Rc<Options>) { for ws in &mut self.workspaces { ws.update_config(options.clone()); |
