From 23f3c30b5843c69c0eb2f531793a470fadb612e3 Mon Sep 17 00:00:00 2001 From: Nicholas Rishel Date: Mon, 2 Nov 2020 16:41:40 -0800 Subject: Fix T64138: Windows Ink continuous grab at window edge. WM_POINTERLEAVE occurs when the pen goes out of range or when a hovering pen leaves the window's boundary. When leaving the window boundary the xy position is invalid for some Wacom devices. This change removes creation of GHOST_EventCursor during WM_POINTERLEAVE events. This prevents unexpected jumping behavior during continuous grab. --- intern/ghost/intern/GHOST_SystemWin32.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'intern/ghost') diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 70933bd668e..b820358600c 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -1137,11 +1137,6 @@ void GHOST_SystemWin32::processPointerEvent( break; case WM_POINTERLEAVE: window->m_tabletInRange = false; - system->pushEvent(new GHOST_EventButton(pointerInfo[0].time, - GHOST_kEventCursorMove, - window, - pointerInfo[0].buttonMask, - pointerInfo[0].tabletData)); break; default: break; -- cgit v1.2.3