Made disabled mode disable Win32 cursor image.

This commit is contained in:
Camilla Berglund 2013-10-07 16:28:19 +02:00
parent 6e68d89e0f
commit 16a8fafab2

View File

@ -696,8 +696,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
case WM_SETCURSOR: case WM_SETCURSOR:
{ {
if (window->cursorMode == GLFW_CURSOR_HIDDEN && if (window->cursorMode != GLFW_CURSOR_NORMAL &&
window->win32.handle == GetForegroundWindow() && _glfw.focusedWindow == window &&
LOWORD(lParam) == HTCLIENT) LOWORD(lParam) == HTCLIENT)
{ {
SetCursor(NULL); SetCursor(NULL);