diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-23 11:27:27 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-25 04:07:59 -0800 |
| commit | 93cee2994ab9ccf59a09f61d5b8acf6cd937d654 (patch) | |
| tree | fb00cdb266e9e94891f226558cd93a09e0091d69 /src/layout/closing_window.rs | |
| parent | 9c7e8d04d27d2f914ad3e9a54c64b64c34aea4d4 (diff) | |
| download | niri-93cee2994ab9ccf59a09f61d5b8acf6cd937d654.tar.gz niri-93cee2994ab9ccf59a09f61d5b8acf6cd937d654.tar.bz2 niri-93cee2994ab9ccf59a09f61d5b8acf6cd937d654.zip | |
Refactor animations to take explicit current time
Diffstat (limited to 'src/layout/closing_window.rs')
| -rw-r--r-- | src/layout/closing_window.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/closing_window.rs b/src/layout/closing_window.rs index 8bbf0258..744c099e 100644 --- a/src/layout/closing_window.rs +++ b/src/layout/closing_window.rs @@ -142,8 +142,7 @@ impl ClosingWindow { match &mut self.anim_state { AnimationState::Waiting { blocker, anim } => { if blocker.state() != BlockerState::Pending { - let mut anim = anim.restarted(0., 1., 0.); - anim.set_current_time(current_time); + let anim = anim.restarted(current_time, 0., 1., 0.); self.anim_state = AnimationState::Animating(anim); } } |
