diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-08 15:24:02 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-02-10 07:29:33 -0800 |
| commit | 02eccf7762bf01cca0bf066d769e2533e2d5a3d2 (patch) | |
| tree | 25afba081f03c1f4d45a84f415dcf3651196d914 /src/layout/workspace.rs | |
| parent | 89cf276779d75c52c261d9ef78e1e808021164e4 (diff) | |
| download | niri-02eccf7762bf01cca0bf066d769e2533e2d5a3d2.tar.gz niri-02eccf7762bf01cca0bf066d769e2533e2d5a3d2.tar.bz2 niri-02eccf7762bf01cca0bf066d769e2533e2d5a3d2.zip | |
layout: Fix/add animations around tabbed columns
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"); + } + } } } } |
