diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-01 09:45:57 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-10 07:59:14 +0300 |
| commit | 4f5c8e745bec6395105138c83468bccb4ab27ea9 (patch) | |
| tree | dc9fec8fa7ba6019316fff22f22c1544f81fc7ad /src/layout/workspace.rs | |
| parent | f30413a744742b013c3f215369fe28780d6ba392 (diff) | |
| download | niri-4f5c8e745bec6395105138c83468bccb4ab27ea9.tar.gz niri-4f5c8e745bec6395105138c83468bccb4ab27ea9.tar.bz2 niri-4f5c8e745bec6395105138c83468bccb4ab27ea9.zip | |
Offscreen semitransparent tiles
Now that offscreen does damage tracking, we can reasonably do this. Note this
only affects full-tile opacity, not window opacity.
Diffstat (limited to 'src/layout/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 226c4411..0e4c1af5 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1752,7 +1752,8 @@ impl<W: LayoutElement> Workspace<W> { assert_abs_diff_eq!(tile_pos.x, rounded_pos.x, epsilon = 1e-5); assert_abs_diff_eq!(tile_pos.y, rounded_pos.y, epsilon = 1e-5); - if let Some(anim) = &tile.alpha_animation { + if let Some(alpha) = &tile.alpha_animation { + let anim = &alpha.anim; if visible { assert_eq!(anim.to(), 1., "visible tiles can animate alpha only to 1"); } |
