From adbd53327cc597d176da6f7cc23dec72047db90d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 14 Aug 2023 17:40:15 +0400 Subject: Advance animations in process_input_event --- src/layout.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/layout.rs') diff --git a/src/layout.rs b/src/layout.rs index 542c43b4..618f6fe0 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -726,6 +726,21 @@ impl MonitorSet { } } } + + pub fn advance_animations(&mut self, current_time: Duration) { + match self { + MonitorSet::Normal { monitors, .. } => { + for mon in monitors { + mon.advance_animations(current_time); + } + } + MonitorSet::NoOutputs(workspaces) => { + for ws in workspaces { + ws.advance_animations(current_time); + } + } + } + } } impl MonitorSet { -- cgit