From 45eebb39fb279db0b06fda74fa4a4c8e787781e2 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 31 Dec 2014 20:25:54 +0100 Subject: [PATCH] Fixed order of operations. --- src/win32_window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/win32_window.c b/src/win32_window.c index c81f91d7..df0ea7f8 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -566,6 +566,11 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, updateClipRect(window); } + if (wParam == SIZE_MINIMIZED) + _glfwInputWindowIconify(window, GL_TRUE); + else if (wParam == SIZE_RESTORED) + _glfwInputWindowIconify(window, GL_FALSE); + _glfwInputFramebufferSize(window, LOWORD(lParam), HIWORD(lParam)); _glfwInputWindowSize(window, LOWORD(lParam), HIWORD(lParam)); return 0;