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:
{
if (window->cursorMode == GLFW_CURSOR_HIDDEN &&
window->win32.handle == GetForegroundWindow() &&
if (window->cursorMode != GLFW_CURSOR_NORMAL &&
_glfw.focusedWindow == window &&
LOWORD(lParam) == HTCLIENT)
{
SetCursor(NULL);

Loading…
Cancel
Save