From 1986f2b58b0ddad7b6783742a728b63e5ae91a68 Mon Sep 17 00:00:00 2001 From: MineBill Date: Wed, 11 Oct 2023 17:06:16 +0300 Subject: [PATCH] Only set WS_CAPTION if the window is a regular window --- Source/Engine/Platform/Windows/WindowsWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Engine/Platform/Windows/WindowsWindow.cpp b/Source/Engine/Platform/Windows/WindowsWindow.cpp index 1bc50f207..8d6cbdf18 100644 --- a/Source/Engine/Platform/Windows/WindowsWindow.cpp +++ b/Source/Engine/Platform/Windows/WindowsWindow.cpp @@ -108,8 +108,7 @@ WindowsWindow::WindowsWindow(const CreateWindowSettings& settings) style |= WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | WS_THICKFRAME | WS_GROUP; #elif WINDOWS_USE_NEWER_BORDER_LESS if (settings.IsRegularWindow) - style |= WS_THICKFRAME | WS_SYSMENU; - style |= WS_CAPTION; + style |= WS_THICKFRAME | WS_SYSMENU | WS_CAPTION; #endif exStyle |= WS_EX_WINDOWEDGE; }