diff options
author | Nicholas Rishel <rishel.nick@gmail.com> | 2020-10-24 07:38:21 +0300 |
---|---|---|
committer | Nicholas Rishel <rishel.nick@gmail.com> | 2020-10-31 02:29:04 +0300 |
commit | 316a5914bcc668d5c497881a1a0e5da81ebe7aaf (patch) | |
tree | 2fa3593433f4695db504ac27eca3f29e8e174f58 | |
parent | af7b0003cb682b3762776c354ecb94d853aa1dab (diff) |
Previous check seems to have a race condition, resulting in Wintab not being enabled.
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWin32.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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( |