diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-24 09:41:43 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-25 04:07:59 -0800 |
| commit | 4c22c3285d8b10fbcef1c45a0788c3ddca03ec62 (patch) | |
| tree | 506174fe9962a91598ac25d4d2dee1cdaa3d5292 /src/input | |
| parent | 93cee2994ab9ccf59a09f61d5b8acf6cd937d654 (diff) | |
| download | niri-4c22c3285d8b10fbcef1c45a0788c3ddca03ec62.tar.gz niri-4c22c3285d8b10fbcef1c45a0788c3ddca03ec62.tar.bz2 niri-4c22c3285d8b10fbcef1c45a0788c3ddca03ec62.zip | |
Refactor animation timing to use lazy clocks
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/mod.rs | 7 |
1 files changed, 2 insertions, 5 deletions
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. |
