From 76a56352980fc9a646034c45e6f02093cc72fdb6 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 22 Dec 2024 10:40:26 +0300 Subject: layout: Preserve the Tile when moving across workspaces --- src/layout/floating.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/layout/floating.rs') diff --git a/src/layout/floating.rs b/src/layout/floating.rs index f870b2f2..5c0eb121 100644 --- a/src/layout/floating.rs +++ b/src/layout/floating.rs @@ -606,6 +606,9 @@ impl FloatingSpace { let win_size = Size::from((win_width, win_height)); win.request_size_once(win_size, animate); + + // Store it right away so pending resizes are not lost when moving across floating spaces. + tile.set_floating_window_size(win_size); } pub fn set_window_height(&mut self, id: Option<&W::Id>, change: SizeChange, animate: bool) { @@ -636,6 +639,9 @@ impl FloatingSpace { let win_size = Size::from((win_width, win_height)); win.request_size_once(win_size, animate); + + // Store it right away so pending resizes are not lost when moving across floating spaces. + tile.set_floating_window_size(win_size); } fn focus_directional( -- cgit