aboutsummaryrefslogtreecommitdiff
path: root/src/layout/tile.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-04-10 11:28:49 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-04-10 11:28:49 +0400
commit5383a0591f22b9640a570e299a73706eb4a27ffc (patch)
treef1ead9293eaf63676573494c9d0b3571fc3698eb /src/layout/tile.rs
parent0c686090637f51caee2dd2fea2223a3c5bc4995b (diff)
downloadniri-5383a0591f22b9640a570e299a73706eb4a27ffc.tar.gz
niri-5383a0591f22b9640a570e299a73706eb4a27ffc.tar.bz2
niri-5383a0591f22b9640a570e299a73706eb4a27ffc.zip
Use clamped animations where it makes sense
Diffstat (limited to 'src/layout/tile.rs')
-rw-r--r--src/layout/tile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs
index 53300bec..1fcf4f1b 100644
--- a/src/layout/tile.rs
+++ b/src/layout/tile.rs
@@ -387,7 +387,7 @@ impl<W: LayoutElement> Tile<W> {
renderer,
scale.x as i32,
&elements,
- anim.value().clamp(0., 1.) as f32,
+ anim.clamped_value().clamp(0., 1.) as f32,
);
self.window()
.set_offscreen_element_id(Some(elem.id().clone()));