Browse Source

Fix bad size after restoring a minimized window under Windows

jmb462 4 years ago
parent
commit
59116e1995
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/windows/display_server_windows.cpp

+ 1 - 0
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) {
 			else if (wParam == SIZE_MINIMIZED) {
 				windows[window_id].maximized = false;
 				windows[window_id].maximized = false;
 				windows[window_id].minimized = true;
 				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.
 			// The window has been resized, but neither the SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.
 			else if (wParam == SIZE_RESTORED) {
 			else if (wParam == SIZE_RESTORED) {