Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rishel <rishel.nick@gmail.com>2021-06-29 01:09:59 +0300
committerNicholas Rishel <rishel.nick@gmail.com>2021-06-29 01:09:59 +0300
commite1a719c0433b0cccb9aa52b0b02eb53ad120c97b (patch)
treedccb6c736b26ce9e997d92a81482aeef4e4cc437 /intern/ghost
parent2271b9b584ae7af25009ae0c00a55a8feac1c70c (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/ghost')
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp2
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;
}