Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 5fbaa96

Browse files
Merge pull request #5452 from montegoulding/bugfix-19620
[Bug 19620] Update cursor when entering window
2 parents 1cdc1a9 + 73fa92a commit 5fbaa96

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docs/notes/bugfix-19620.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Update cursor when entering window on windows

engine/src/w32dcw32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ LRESULT CALLBACK MCWindowProc(HWND hwnd, UINT msg, WPARAM wParam,
11081108
if (curinfo->live && !pms->isgrabbed() && LOWORD(lParam) != HTCLIENT)
11091109
return IsWindowUnicode(hwnd) ? DefWindowProcW(hwnd, msg, wParam, lParam) : DefWindowProcA(hwnd, msg, wParam, lParam);
11101110
MCmousestackptr = MCdispatcher->findstackd(dw);
1111-
if (!MCmousestackptr)
1111+
if (MCmousestackptr)
11121112
{
11131113
MCmousestackptr->resetcursor(True);
11141114
if (pms->getmousetimer() == 0)

0 commit comments

Comments
 (0)