diff options
author | floppyhammer <tannhauser_chen@outlook.com> | 2021-03-30 20:09:19 +0800 |
---|---|---|
committer | floppyhammer <tannhauser_chen@outlook.com> | 2021-03-30 20:09:19 +0800 |
commit | 18678fd11e121e53e2ef3f5edd8f24a66d3e7f9d (patch) | |
tree | 538ec918148ad18a90bb84165b081b987f5dfc97 | |
parent | db31445b905d94f055ffd210aee6d93cc39b8c96 (diff) |
Fix window resizing after minimization on Windows
-rw-r--r-- | platform/windows/display_server_windows.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index 78459b4f45..86f20f1dd7 100644 --- a/platform/windows/display_server_windows.cpp +++ b/platform/windows/display_server_windows.cpp @@ -2566,6 +2566,8 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA windows[window_id].preserve_window_size = false; window_set_size(Size2(windows[window_id].width, windows[window_id].height), window_id); } + } else { + windows[window_id].preserve_window_size = true; } if (!windows[window_id].rect_changed_callback.is_null()) { |