Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rishel <rishel.nick@gmail.com>2020-10-24 07:38:21 +0300
committerNicholas Rishel <rishel.nick@gmail.com>2020-10-31 02:29:04 +0300
commit316a5914bcc668d5c497881a1a0e5da81ebe7aaf (patch)
tree2fa3593433f4695db504ac27eca3f29e8e174f58 /intern/ghost
parentaf7b0003cb682b3762776c354ecb94d853aa1dab (diff)
Previous check seems to have a race condition, resulting in Wintab not being enabled.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_WindowWin32.cpp3
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(