diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-14 14:29:41 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-14 14:29:41 +0400 |
| commit | 568fbe26fe58be7de34e46ddb980a26d12e85ac6 (patch) | |
| tree | 1ee6a0d90d16419284ae837351071acf9cc00d39 /src/layout/monitor.rs | |
| parent | f8412ecff3bc2b3d6fa394b79c4f476179a55a90 (diff) | |
| download | niri-568fbe26fe58be7de34e46ddb980a26d12e85ac6.tar.gz niri-568fbe26fe58be7de34e46ddb980a26d12e85ac6.tar.bz2 niri-568fbe26fe58be7de34e46ddb980a26d12e85ac6.zip | |
Avoid continuous redrawing during horizontal gesture
Diffstat (limited to 'src/layout/monitor.rs')
| -rw-r--r-- | src/layout/monitor.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 6e8cb36d..9476acfb 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -544,7 +544,10 @@ impl<W: LayoutElement> Monitor<W> { pub fn are_transitions_ongoing(&self) -> bool { self.workspace_switch.is_some() - || self.workspaces.iter().any(|ws| ws.are_animations_ongoing()) + || self + .workspaces + .iter() + .any(|ws| ws.are_transitions_ongoing()) } pub fn update_config(&mut self, options: Rc<Options>) { |
