From 6b4b62c56c11e5ec2a7cabe3a7bc7262df5c791a Mon Sep 17 00:00:00 2001 From: Aaron Loucks Date: Sun, 1 Sep 2013 15:24:20 -0400 Subject: [PATCH] fix for https://github.com/glfw/glfw/issues/123 --- src/win32_window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win32_window.c b/src/win32_window.c index 139e661d..729ad755 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -679,7 +679,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, case WM_SETCURSOR: { - if (window->cursorMode == GLFW_CURSOR_HIDDEN && + if ((window->cursorMode == GLFW_CURSOR_HIDDEN || + window->cursorMode == GLFW_CURSOR_DISABLED) && window->win32.handle == GetForegroundWindow() && LOWORD(lParam) == HTCLIENT) {