From 2d3f388158131f9ac421117c831fa8ac699263b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 14 Aug 2019 19:18:29 +0200 Subject: [PATCH] Win32: Fix initial state of maximized state cache (cherry picked from commit 2c7ef5b480d7780455deed43aedc177b9fe3ac61) --- src/win32_window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/win32_window.c b/src/win32_window.c index 7090c981..e7fe3a0a 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1228,6 +1228,7 @@ static int createNativeWindow(_GLFWwindow* window, xpos = CW_USEDEFAULT; ypos = CW_USEDEFAULT; + window->win32.maximized = wndconfig->maximized; if (wndconfig->maximized) style |= WS_MAXIMIZE;