diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-19 20:24:59 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-19 20:24:59 +0400 |
| commit | 55ad36addc4576b78a1b22d09fc9d315aac0b101 (patch) | |
| tree | e5c67b5c3d5e7f891bef6262aecf5330b3f64c38 /src/animation.rs | |
| parent | 26c8cbb961b96917b02440b4df6066d8429a8043 (diff) | |
| download | niri-55ad36addc4576b78a1b22d09fc9d315aac0b101.tar.gz niri-55ad36addc4576b78a1b22d09fc9d315aac0b101.tar.bz2 niri-55ad36addc4576b78a1b22d09fc9d315aac0b101.zip | |
layout: Fix crash due to workspace transfer during switch
Diffstat (limited to 'src/animation.rs')
| -rw-r--r-- | src/animation.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/animation.rs b/src/animation.rs index e2b9dc39..addfdfca 100644 --- a/src/animation.rs +++ b/src/animation.rs @@ -50,4 +50,9 @@ impl Animation { pub fn to(&self) -> f64 { self.to } + + #[cfg(test)] + pub fn from(&self) -> f64 { + self.from + } } |
