summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-08-27 16:58:44 +0200
committerGitHub <noreply@github.com>2021-08-27 16:58:44 +0200
commit82d1ebe90762afc4953ceac145cc43047f7f256c (patch)
tree5eebc0c23bb46149857f88b2b00d2515b6b6d945
parent39c25d5bf327f205e00647e3c042c8a0904b3c13 (diff)
parent59116e1995d2a0d463294701281e52383c27ecf6 (diff)
Merge pull request #52154 from jmb462/fix-bad-window-size-after-minimized
Fix bad size after restoring a minimized window under Windows Fix #52150
-rw-r--r--platform/windows/display_server_windows.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index c6ed30a0fe..cf51caa6d5 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -2611,6 +2611,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
else if (wParam == SIZE_MINIMIZED) {
windows[window_id].maximized = false;
windows[window_id].minimized = true;
+ windows[window_id].preserve_window_size = false;
}
// The window has been resized, but neither the SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.
else if (wParam == SIZE_RESTORED) {