Skip to content

Conversation

@Noojuno
Copy link

@Noojuno Noojuno commented Nov 8, 2025

Fixes #79754.

In Windows (replicated in Windows 10 & 11), minimizing then restoring a window that has both a size and a max_size set will cause the window to shrink to the smallest size window possible.

This PR fixes it by storing the width and height from GetWindowRect() and reading from that if the window is minimized. This is the exact same way we already solve the issue when reading from GetClientRect() in window_get_size.

Before

minimize_before.mp4

After

minimize_after.mp4

Minimum reproduction

min-rep-resize_2025-11-08_20-39-42.zip

…ze when minimizing by storing previous value
@Noojuno Noojuno marked this pull request as ready for review November 8, 2025 08:04
@Noojuno Noojuno requested a review from a team as a code owner November 8, 2025 08:04
@bruvzg bruvzg self-requested a review November 8, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Root window gets smaller after minimizing with a (big enough) max_size set.

2 participants