From c819da7fdb2fedbdbd484ca20b6de430e12a948b Mon Sep 17 00:00:00 2001 From: jpcerrone Date: Fri, 2 Jun 2023 10:31:50 -0300 Subject: [PATCH] Fix minimize button missing in non-resizable projects. Fixes https://github.com/godotengine/godot/issues/77603. On Windows, disabling the 'resizable' flag on the project settings would also remove the minimize button from the window. --- platform/windows/display_server_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index f971846959e..84c2ae78f2d 100644 --- a/platform/windows/display_server_windows.cpp +++ b/platform/windows/display_server_windows.cpp @@ -1325,7 +1325,7 @@ void DisplayServerWindows::_get_window_style(bool p_main_window, bool p_fullscre r_style = WS_OVERLAPPEDWINDOW; } } else { - r_style = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU; + r_style = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX; } }