WinTab: Fix updating tablet pressure resolution on every proximity enter event
The user can switch pressure sensitivity level in the driver, which will make our saved values invalid (this option is provided by Wacom drivers for compatibility reasons, and it can be adjusted on the fly). See the bug: https://bugs.kde.org/show_bug.cgi?id=391054 Pick-to: 5.15 Change-Id: I6cfdff27eaf5a587bf714871f1495a7ea150c553 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>bb10
parent
6fb81a2c14
commit
f80026ef9a
|
|
@ -435,6 +435,11 @@ bool QWindowsTabletSupport::translateTabletProximityEvent(WPARAM /* wParam */, L
|
|||
if (m_currentDevice < 0) {
|
||||
m_currentDevice = m_devices.size();
|
||||
m_devices.push_back(tabletInit(uniqueId, cursorType));
|
||||
} else {
|
||||
// The user can switch pressure sensitivity level in the driver,which
|
||||
// will make our saved values invalid (this option is provided by Wacom
|
||||
// drivers for compatibility reasons, and it can be adjusted on the fly)
|
||||
m_devices[m_currentDevice] = tabletInit(uniqueId, cursorType);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue