aboutsummaryrefslogtreecommitdiff
path: root/src/layout.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-14 17:40:15 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-14 18:37:33 +0400
commitadbd53327cc597d176da6f7cc23dec72047db90d (patch)
tree44694d00722bf8ef2f944ed3db5c4eeae8814d4d /src/layout.rs
parent99ab96d348b9110b05784f65ed5542b117d2fb04 (diff)
downloadniri-adbd53327cc597d176da6f7cc23dec72047db90d.tar.gz
niri-adbd53327cc597d176da6f7cc23dec72047db90d.tar.bz2
niri-adbd53327cc597d176da6f7cc23dec72047db90d.zip
Advance animations in process_input_event
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs15
1 files changed, 15 insertions, 0 deletions
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<W: LayoutElement> MonitorSet<W> {
}
}
}
+
+ 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<Window> {