Warning, /graphics/krita/3rdparty/ext_qt/0028-Fix-updating-tablet-pressure-resolution-on-every-pro.patch is written in an unsupported language. File is not indexed.
0001 From 993c207980090d89733140ad581da6ec8facb03b Mon Sep 17 00:00:00 2001 0002 From: Dmitry Kazakov <dimula73@gmail.com> 0003 Date: Thu, 18 Apr 2019 15:42:17 +0300 0004 Subject: [PATCH 09/47] Fix updating tablet pressure resolution on every 0005 proximity enter event 0006 0007 The user can switch pressure sensitivity level in the driver, 0008 which will make our saved values invalid (this option is 0009 provided by Wacom drivers for compatibility reasons, and 0010 it can be adjusted on the fly) 0011 0012 See the bug: https://bugs.kde.org/show_bug.cgi?id=391054 0013 0014 Change-Id: I6cfdff27eaf5a587bf714871f1495a7ea150c553 0015 --- 0016 src/plugins/platforms/windows/qwindowstabletsupport.cpp | 8 ++++++++ 0017 1 file changed, 8 insertions(+) 0018 0019 diff --git a/src/plugins/platforms/windows/qwindowstabletsupport.cpp b/src/plugins/platforms/windows/qwindowstabletsupport.cpp 0020 index f013efaa15..f0087556cf 100644 0021 --- a/src/plugins/platforms/windows/qwindowstabletsupport.cpp 0022 +++ b/src/plugins/platforms/windows/qwindowstabletsupport.cpp 0023 @@ -519,6 +519,14 @@ bool QWindowsTabletSupport::translateTabletProximityEvent(WPARAM /* wParam */, L 0024 if (m_currentDevice < 0) { 0025 m_currentDevice = m_devices.size(); 0026 m_devices.push_back(tabletInit(uniqueId, cursorType)); 0027 + } else { 0028 + /** 0029 + * The user can switch pressure sensitivity level in the driver, 0030 + * which will make our saved values invalid (this option is 0031 + * provided by Wacom drivers for compatibility reasons, and 0032 + * it can be adjusted on the fly) 0033 + */ 0034 + m_devices[m_currentDevice] = tabletInit(uniqueId, cursorType); 0035 } 0036 0037 /** 0038 -- 0039 2.20.1.windows.1 0040