diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-28 12:06:22 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | 4ea4d2bd3bea5407c6ddc0ee33f55025ffc1bf38 (patch) | |
| tree | a1a0d3162e6411e141d0996c9f87f3d09a2562d0 /src/layout/workspace.rs | |
| parent | 6c52077d922dce3a9b57c6785647b6befb700ac9 (diff) | |
| download | niri-4ea4d2bd3bea5407c6ddc0ee33f55025ffc1bf38.tar.gz niri-4ea4d2bd3bea5407c6ddc0ee33f55025ffc1bf38.tar.bz2 niri-4ea4d2bd3bea5407c6ddc0ee33f55025ffc1bf38.zip | |
layout: Add animate arg to move_floating_window()
Diffstat (limited to 'src/layout/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index de190275..9b362eaf 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1190,11 +1190,12 @@ impl<W: LayoutElement> Workspace<W> { id: Option<&W::Id>, x: PositionChange, y: PositionChange, + animate: bool, ) { if id.map_or(self.floating_is_active.get(), |id| { self.floating.has_window(id) }) { - self.floating.move_window(id, x, y); + self.floating.move_window(id, x, y, animate); } else { // If the target tile isn't floating, set its stored floating position. let tile = if let Some(id) = id { |
