Fix T89465: Loss of mouse movement when window left with pen.

When a window is left with a WinPointer pen, the inrange check
prevents resetting pen info.
This commit is contained in:
Nicholas Rishel
2021-06-28 15:09:59 -07:00
parent 2271b9b584
commit e1a719c043

View File

@@ -1634,7 +1634,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
}
/* Reset pointer pen info if pen device has left tracking range. */
if (pointerInfo.pointerType == PT_PEN && !IS_POINTER_INRANGE_WPARAM(wParam)) {
if (pointerInfo.pointerType == PT_PEN) {
window->resetPointerPenInfo();
eventHandled = true;
}