diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-10-21 20:46:41 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-10-21 20:58:30 +0400 |
| commit | 8bde252ba4c8f552cc8bcabcd2b277278884781d (patch) | |
| tree | 8f4e4ddf3d36968b32bb59f8addefa9a2c848f22 /src/layout.rs | |
| parent | 29ddd7006b951d725b10c7cf3e54174a703fb554 (diff) | |
| download | niri-8bde252ba4c8f552cc8bcabcd2b277278884781d.tar.gz niri-8bde252ba4c8f552cc8bcabcd2b277278884781d.tar.bz2 niri-8bde252ba4c8f552cc8bcabcd2b277278884781d.zip | |
Stop updating focus during transitions
This also includes touchpad swipes.
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()); |
