From dcc691c77d7de0f52f8c37a3727efd088cd4d9b1 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 Pick-to: 6.4 Task-number: QTBUG-102764 Change-Id: Ic6913adbeb6b91e3953ddfe8b401975d95cd9af3 Reviewed-by: Doris Verria --- 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 efa836522a9..746c5dad534 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -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