From 93cee2994ab9ccf59a09f61d5b8acf6cd937d654 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 23 Nov 2024 11:27:27 +0300 Subject: Refactor animations to take explicit current time --- src/input/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/input') diff --git a/src/input/mod.rs b/src/input/mod.rs index 976f51db..eec8fbe4 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -3024,6 +3024,7 @@ pub fn mods_with_finger_scroll_binds(comp_mod: CompositorMod, binds: &Binds) -> #[cfg(test)] mod tests { use super::*; + use crate::animation::Clock; #[test] fn bindings_suppress_keys() { @@ -3042,7 +3043,7 @@ mod tests { let comp_mod = CompositorMod::Super; let mut suppressed_keys = HashSet::new(); - let screenshot_ui = ScreenshotUi::new(Default::default()); + let screenshot_ui = ScreenshotUi::new(Clock::default(), Default::default()); let disable_power_key_handling = false; // The key_code we pick is arbitrary, the only thing -- cgit