From 4c22c3285d8b10fbcef1c45a0788c3ddca03ec62 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 24 Nov 2024 09:41:43 +0300 Subject: Refactor animation timing to use lazy clocks --- src/input/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/input') diff --git a/src/input/mod.rs b/src/input/mod.rs index eec8fbe4..bafa1505 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -83,11 +83,8 @@ impl State { { let _span = tracy_client::span!("process_input_event"); - // A bit of a hack, but animation end runs some logic (i.e. workspace clean-up) and it - // doesn't always trigger due to damage, etc. So run it here right before it might prove - // important. Besides, animations affect the input, so it's best to have up-to-date values - // here. - self.niri.advance_animations(get_monotonic_time()); + // Make sure some logic like workspace clean-up has a chance to run before doing actions. + self.niri.advance_animations(); if self.niri.monitors_active { // Notify the idle-notifier of activity. -- cgit