From 16a8fafab2bea1c3fb9dec789dd14cc21f5718c3 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Oct 2013 16:28:19 +0200 Subject: [PATCH] Made disabled mode disable Win32 cursor image. --- src/win32_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index c0273c3b..46644109 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -696,8 +696,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, case WM_SETCURSOR: { - if (window->cursorMode == GLFW_CURSOR_HIDDEN && - window->win32.handle == GetForegroundWindow() && + if (window->cursorMode != GLFW_CURSOR_NORMAL && + _glfw.focusedWindow == window && LOWORD(lParam) == HTCLIENT) { SetCursor(NULL);