From 02eccf7762bf01cca0bf066d769e2533e2d5a3d2 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 8 Feb 2025 15:24:02 +0300 Subject: layout: Fix/add animations around tabbed columns --- src/layout/workspace.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/layout/workspace.rs') 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 Workspace { ); } - 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 Workspace { // 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"); + } + } } } } -- cgit