From 316a5914bcc668d5c497881a1a0e5da81ebe7aaf Mon Sep 17 00:00:00 2001 From: Nicholas Rishel Date: Fri, 23 Oct 2020 21:38:21 -0700 Subject: Previous check seems to have a race condition, resulting in Wintab not being enabled. --- intern/ghost/intern/GHOST_WindowWin32.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'intern') 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( -- cgit v1.2.3