[Bf-blender-cvs] [316a5914bcc] master: Previous check seems to have a race condition, resulting in Wintab not being enabled.

Nicholas Rishel noreply at git.blender.org
Sat Oct 31 00:32:30 CET 2020


Commit: 316a5914bcc668d5c497881a1a0e5da81ebe7aaf
Author: Nicholas Rishel
Date:   Fri Oct 23 21:38:21 2020 -0700
Branches: master
https://developer.blender.org/rB316a5914bcc668d5c497881a1a0e5da81ebe7aaf

Previous check seems to have a race condition, resulting in Wintab not being enabled.

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

M	intern/ghost/intern/GHOST_WindowWin32.cpp

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

diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp
index e22fbf7ae2d..5904a72b186 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -310,8 +310,7 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system,
       (m_wintab.overlap = (GHOST_WIN32_WTOverlap)::GetProcAddress(m_wintab.handle, "WTOverlap"))) {
     initializeWintab();
     // Determine which tablet API to use and enable it.
-    bool enableWintab = state != GHOST_kWindowStateMinimized;
-    updateWintab(enableWintab, enableWintab);
+    updateWintab(m_system->m_windowFocus, m_system->m_windowFocus);
   }
 
   CoCreateInstance(



More information about the Bf-blender-cvs mailing list