diff options
Diffstat (limited to 'src/layout/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 9fd57baa..b5392644 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1688,7 +1688,7 @@ impl<W: LayoutElement> Workspace<W> { ); } - for (tile, tile_pos, _visible) in self.tiles_with_render_positions() { + for (tile, tile_pos, visible) in self.tiles_with_render_positions() { if Some(tile.window().id()) != move_win_id { assert_eq!(tile.interactive_move_offset, Point::from((0., 0.))); } @@ -1698,6 +1698,12 @@ impl<W: LayoutElement> Workspace<W> { // Tile positions must be rounded to physical pixels. 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 visible { + assert_eq!(anim.to(), 1., "visible tiles can animate alpha only to 1"); + } + } } } } |
