From efb06499a7cb766062ef05f4af6bef250e3fefba Mon Sep 17 00:00:00 2001 From: Viktor Arvidsson Date: Fri, 27 Oct 2023 22:24:18 +0200 Subject: [PATCH] Add missing timestamp to tablet events When copying the event for notify, timestamp was not set as it is for other input events. Pick-to: 6.5 6.6 Change-Id: I81bb89993027c902db2d1113605d6e6a0faf98f1 Reviewed-by: Shawn Rutledge --- src/widgets/kernel/qapplication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index bfef2d2cb0..8911bd1e2e 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -2949,6 +2949,7 @@ bool QApplication::notify(QObject *receiver, QEvent *e) tablet->tangentialPressure(), tablet->rotation(), tablet->z(), tablet->modifiers(), tablet->button(), tablet->buttons()); te.m_spont = e->spontaneous(); + te.setTimestamp(tablet->timestamp()); te.setAccepted(false); res = d->notify_helper(w, w == receiver ? tablet : &te); eventAccepted = ((w == receiver) ? tablet : &te)->isAccepted();