aboutsummaryrefslogtreecommitdiff
path: root/src/animation.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-01-19 20:24:59 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-01-19 20:24:59 +0400
commit55ad36addc4576b78a1b22d09fc9d315aac0b101 (patch)
treee5c67b5c3d5e7f891bef6262aecf5330b3f64c38 /src/animation.rs
parent26c8cbb961b96917b02440b4df6066d8429a8043 (diff)
downloadniri-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.rs5
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
+ }
}