Add qt.pointer.dispatch debug message for tablet->mouse synth
We have one for touch->mouse synthesis, so perhaps it's a good idea here too; then we can confirm that it's missing on Windows, because Windows normally does the synthesis (setPlatformSynthesizesMouse(false) is not called on this platform, so the default is true, meaning we expect that it does that). The cross-platform synthesis (and ability for a platform plugin to disable) began with f931e5e72d4617023bbea46cba2c0d61bb1efa4f Pick-to: 6.4 Task-number: QTBUG-102764 Change-Id: Ic6913adbeb6b91e3953ddfe8b401975d95cd9af3 Reviewed-by: Doris Verria <doris.verria@qt.io>
This commit is contained in:
parent
8824a4e19c
commit
dcc691c77d
@ -2736,6 +2736,8 @@ void QGuiApplicationPrivate::processTabletEvent(QWindowSystemInterfacePrivate::T
|
||||
QWindowSystemInterfacePrivate::MouseEvent mouseEvent(window, e->timestamp, e->local,
|
||||
e->global, e->buttons, e->modifiers, button, mouseType, Qt::MouseEventNotSynthesized, false, device);
|
||||
mouseEvent.flags |= QWindowSystemInterfacePrivate::WindowSystemEvent::Synthetic;
|
||||
qCDebug(lcPtrDispatch) << "synthesizing mouse from tablet event" << mouseType
|
||||
<< e->local << button << e->buttons << e->modifiers;
|
||||
processMouseEvent(&mouseEvent);
|
||||
}
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user