diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-15 21:19:09 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-15 21:19:09 +0400 |
| commit | 69f723d68aa28698488618e00688ef3a84e40819 (patch) | |
| tree | 3f7983e9257c87297dd699c84ac2077fefff386f /src/layout/tile.rs | |
| parent | 568fbe26fe58be7de34e46ddb980a26d12e85ac6 (diff) | |
| download | niri-69f723d68aa28698488618e00688ef3a84e40819.tar.gz niri-69f723d68aa28698488618e00688ef3a84e40819.tar.bz2 niri-69f723d68aa28698488618e00688ef3a84e40819.zip | |
Implement vertical window move animations
Diffstat (limited to 'src/layout/tile.rs')
| -rw-r--r-- | src/layout/tile.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs index e1f9297f..b578b0c0 100644 --- a/src/layout/tile.rs +++ b/src/layout/tile.rs @@ -243,6 +243,14 @@ impl<W: LayoutElement> Tile<W> { self.resize_animation.as_ref().map(|resize| &resize.anim) } + pub fn animate_move_from(&mut self, from: Point<i32, Logical>) { + self.animate_move_from_with_config( + from, + self.options.animations.window_movement, + niri_config::Animation::default_window_movement(), + ); + } + pub fn animate_move_from_with_config( &mut self, from: Point<i32, Logical>, |
