diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-21 20:10:35 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-21 20:16:54 +0400 |
| commit | 49f5402669012be33f8cd111311c3e39fd4751c0 (patch) | |
| tree | a90eab10775b63cddb0772923d43875ee13ef8b6 /src/layout/workspace.rs | |
| parent | 2ecbb3f6f8ceacdccc66a597e372c70029325dbf (diff) | |
| download | niri-49f5402669012be33f8cd111311c3e39fd4751c0.tar.gz niri-49f5402669012be33f8cd111311c3e39fd4751c0.tar.bz2 niri-49f5402669012be33f8cd111311c3e39fd4751c0.zip | |
Implement window-resize custom-shader
Diffstat (limited to 'src/layout/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 116f3759..b6b38285 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1118,14 +1118,14 @@ impl<W: LayoutElement> Workspace<W> { for col in &mut self.columns[col_idx + 1..] { col.animate_move_from_with_config( offset, - self.options.animations.window_resize.0, + self.options.animations.window_resize.anim, ); } } else { for col in &mut self.columns[..=col_idx] { col.animate_move_from_with_config( -offset, - self.options.animations.window_resize.0, + self.options.animations.window_resize.anim, ); } } @@ -1148,7 +1148,7 @@ impl<W: LayoutElement> Workspace<W> { // Synchronize the horizontal view movement with the resize so that it looks nice. This // is especially important for always-centered view. let config = if started_resize_anim { - self.options.animations.window_resize.0 + self.options.animations.window_resize.anim } else { self.options.animations.horizontal_view_movement.0 }; @@ -2356,7 +2356,7 @@ impl<W: LayoutElement> Column<W> { for tile in &mut self.tiles[tile_idx + 1..] { tile.animate_move_y_from_with_config( offset, - self.options.animations.window_resize.0, + self.options.animations.window_resize.anim, ); } } |
