From d39ec5b9edfd07060662eb37f121546a9445b36a Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 22 Feb 2022 10:56:58 +0200 Subject: [Windows] Fix borderless window flag toggle and restoring minimized borderless window. --- platform/windows/display_server_windows.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'platform') diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index 41295d41d2..6b4b342389 100644 --- a/platform/windows/display_server_windows.cpp +++ b/platform/windows/display_server_windows.cpp @@ -1037,9 +1037,7 @@ void DisplayServerWindows::_get_window_style(bool p_main_window, bool p_fullscre r_style = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU; } } - if (!p_borderless) { - r_style |= WS_VISIBLE; - } + r_style |= WS_VISIBLE; if (p_no_activate_focus) { r_style_ex |= WS_EX_TOPMOST | WS_EX_NOACTIVATE; -- cgit v1.2.3