From 8bde252ba4c8f552cc8bcabcd2b277278884781d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 21 Oct 2023 20:46:41 +0400 Subject: Stop updating focus during transitions This also includes touchpad swipes. --- src/layout.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/layout.rs') 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 Monitor { || 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) { for ws in &mut self.workspaces { ws.update_config(options.clone()); -- cgit