Made disabled mode disable Win32 cursor image.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 6e68d89e0f
commit 16a8fafab2
  1. 4
      src/win32_window.c

@ -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);

Loading…
Cancel
Save