mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 09:01:46 +00:00
Fixed iconification event for maximized windows.
This commit is contained in:
parent
9ec1a4361b
commit
dcc78017b0
@ -159,6 +159,7 @@ typedef struct _GLFWwindowWin32
|
|||||||
DWORD dwExStyle;
|
DWORD dwExStyle;
|
||||||
|
|
||||||
GLboolean cursorInside;
|
GLboolean cursorInside;
|
||||||
|
GLboolean iconified;
|
||||||
|
|
||||||
// The last received cursor position, regardless of source
|
// The last received cursor position, regardless of source
|
||||||
int cursorPosX, cursorPosY;
|
int cursorPosX, cursorPosY;
|
||||||
|
@ -489,10 +489,17 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
|||||||
updateClipRect(window);
|
updateClipRect(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wParam == SIZE_MINIMIZED)
|
if (!window->win32.iconified && wParam == SIZE_MINIMIZED)
|
||||||
|
{
|
||||||
|
window->win32.iconified = GL_TRUE;
|
||||||
_glfwInputWindowIconify(window, GL_TRUE);
|
_glfwInputWindowIconify(window, GL_TRUE);
|
||||||
else if (wParam == SIZE_RESTORED)
|
}
|
||||||
|
else if (window->win32.iconified &&
|
||||||
|
(wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED))
|
||||||
|
{
|
||||||
|
window->win32.iconified = GL_FALSE;
|
||||||
_glfwInputWindowIconify(window, GL_FALSE);
|
_glfwInputWindowIconify(window, GL_FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
_glfwInputFramebufferSize(window, LOWORD(lParam), HIWORD(lParam));
|
_glfwInputFramebufferSize(window, LOWORD(lParam), HIWORD(lParam));
|
||||||
_glfwInputWindowSize(window, LOWORD(lParam), HIWORD(lParam));
|
_glfwInputWindowSize(window, LOWORD(lParam), HIWORD(lParam));
|
||||||
|
Loading…
Reference in New Issue
Block a user