[Bf-blender-cvs] [e1a719c0433] master: Fix T89465: Loss of mouse movement when window left with pen.

Nicholas Rishel noreply at git.blender.org
Tue Jun 29 00:11:00 CEST 2021


Commit: e1a719c0433b0cccb9aa52b0b02eb53ad120c97b
Author: Nicholas Rishel
Date:   Mon Jun 28 15:09:59 2021 -0700
Branches: master
https://developer.blender.org/rBe1a719c0433b0cccb9aa52b0b02eb53ad120c97b

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.

===================================================================

M	intern/ghost/intern/GHOST_SystemWin32.cpp

===================================================================

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;
           }



More information about the Bf-blender-cvs mailing list