From 6f2beb147fca7ddeb8c0f2d9e5bf85677584b487 Mon Sep 17 00:00:00 2001 From: "wojciech.lewandowski" Date: Thu, 4 Jan 2024 13:01:43 +0100 Subject: [PATCH] ZDLM-234 ZDLicenseTool: When opened for the first time, the app borders are not visible --- src/win32_window.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index ab8f2cba..570c1f87 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1374,6 +1374,10 @@ static int createNativeWindow(_GLFWwindow* window, int frameX, frameY, frameWidth, frameHeight; WCHAR* wideTitle; DWORD style = getWindowStyle(window); +#ifdef ZD_GLFW_FORK + if (! window->decorated) + style = aero_borderless; +#endif DWORD exStyle = getWindowExStyle(window); if (!_glfw.win32.mainWindowClass) @@ -1454,11 +1458,7 @@ static int createNativeWindow(_GLFWwindow* window, window->win32.handle = CreateWindowExW(exStyle, MAKEINTATOM(_glfw.win32.mainWindowClass), wideTitle, -#ifdef ZD_GLFW_FORK - window->decorated ? style : aero_borderless, -#else style, -#endif frameX, frameY, frameWidth, frameHeight, NULL, // No parent window