From 2caee225eabb1edce41251bbefa844048ed036a8 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 16 Apr 2013 16:05:30 +0200 Subject: [PATCH] Fixed hidden cursor mode for focus events. --- src/win32_window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/win32_window.c b/src/win32_window.c index 0379c4d6..2ed50089 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -362,7 +362,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, { // The window was defocused (or iconified, see above) - if (window->cursorMode == GLFW_CURSOR_CAPTURED) + if (window->cursorMode != GLFW_CURSOR_NORMAL) showCursor(window); if (window->monitor) @@ -383,6 +383,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, if (window->cursorMode == GLFW_CURSOR_CAPTURED) captureCursor(window); + else if (window->cursorMode == GLFW_CURSOR_HIDDEN) + hideCursor(window); if (window->monitor) _glfwSetVideoMode(window->monitor, &window->videoMode);