From e0d5f26d2883e5b5e5de4a94390bcf69e15415ab Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 6 Feb 2023 11:36:05 +0200 Subject: [PATCH] [Windows] Improve non-exclusive full-screen mode. --- platform/windows/display_server_windows.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index fe7d91dc18ce..7ac499a4968a 100644 --- a/platform/windows/display_server_windows.cpp +++ b/platform/windows/display_server_windows.cpp @@ -1259,9 +1259,10 @@ void DisplayServerWindows::_get_window_style(bool p_main_window, bool p_fullscre } if (p_fullscreen || p_borderless) { - r_style |= WS_POPUP; // p_borderless was WS_EX_TOOLWINDOW in the past. if (p_fullscreen && p_multiwindow_fs) { - r_style |= WS_BORDER; // Allows child windows to be displayed on top of full screen. + r_style |= WS_OVERLAPPED; // Allows child windows to be displayed on top of full screen. + } else { + r_style |= WS_POPUP; // p_borderless was WS_EX_TOOLWINDOW in the past. } } else { if (p_resizable) {