aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
Diffstat (limited to 'src/window')
-rw-r--r--src/window/mapped.rs5
1 files changed, 5 insertions, 0 deletions
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)
}