From f4f2a1f6deeffa5c13d871c534ac99ea398e9175 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 22 Dec 2024 09:28:57 +0300 Subject: floating: Remember and restore window size --- src/window/mapped.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/window') diff --git a/src/window/mapped.rs b/src/window/mapped.rs index 97fc9596..a92608d3 100644 --- a/src/window/mapped.rs +++ b/src/window/mapped.rs @@ -816,6 +816,11 @@ impl LayoutElement for Mapped { return current_size; } + // FIXME: Ideally, if the window doesn't have a pending resize or an uncommitted acked + // size, we should request the current window size, rather than the requested size. This + // will keep the window size as-is when moving to floating in the case that a window + // changed its size in the tiling layout and then we requested a resize. However, that's + // pretty edge-casy and I don't want to complicate this logic for that at the moment. self.requested_size().unwrap_or(current_size) } -- cgit