diff options
author | Nicholas Rishel <rishel.nick@gmail.com> | 2021-06-29 01:09:59 +0300 |
---|---|---|
committer | Nicholas Rishel <rishel.nick@gmail.com> | 2021-06-29 01:09:59 +0300 |
commit | e1a719c0433b0cccb9aa52b0b02eb53ad120c97b (patch) | |
tree | dccb6c736b26ce9e997d92a81482aeef4e4cc437 /intern | |
parent | 2271b9b584ae7af25009ae0c00a55a8feac1c70c (diff) |
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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index fd01d21da5a..a7cb4aee837 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -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; } |