From 21137dadbea682521b0e19e9b9a4cc28cbf741ed Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 13 Jul 2022 17:16:08 +0200 Subject: [PATCH] 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 Task-number: QTBUG-102764 Change-Id: Ic6913adbeb6b91e3953ddfe8b401975d95cd9af3 Reviewed-by: Doris Verria (cherry picked from commit dcc691c77d7de0f52f8c37a3727efd088cd4d9b1) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qguiapplication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 356384fb090..d12b93f9e61 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -2735,6 +2735,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