Home
Phabricator
Search
Log In
Paste
P111
Masterwork From Distant Lands
Active
Public
Actions
Authored by
dkazakov
on Oct 9 2017, 2:02 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/libs/ui/input/wintab/qxcbconnection.cpp b/libs/ui/input/wintab/qxcbconnection.cpp
index d597e62..395d0ad 100644
--- a/libs/ui/input/wintab/qxcbconnection.cpp
+++ b/libs/ui/input/wintab/qxcbconnection.cpp
@@ -582,7 +582,7 @@ void QWindowSystemInterface::handleTabletEvent(QWindow *w, const QPointF &local,
qreal tangentialPressure, qreal rotation, int z, qint64 uid,
Qt::KeyboardModifiers modifiers)
{
- qint64 timestamp = g_eventTimer.elapsed();
+ qint64 timestamp = g_eventTimer.msecsSinceReference() + g_eventTimer.elapsed();
QWindowSystemInterfacePrivate::TabletEvent *e =
new QWindowSystemInterfacePrivate::TabletEvent(w, timestamp, local, global, device, pointerType, buttons, pressure,
@@ -682,7 +682,7 @@ void processTabletEvent(QWindowSystemInterfacePrivate::TabletEvent *e)
void QWindowSystemInterface::handleTabletEnterProximityEvent(int device, int pointerType, qint64 uid)
{
- qint64 timestamp = g_eventTimer.elapsed();
+ qint64 timestamp = g_eventTimer.msecsSinceReference() + g_eventTimer.elapsed();
QTabletEvent ev(QEvent::TabletEnterProximity, QPointF(), QPointF(),
device, pointerType, 0, 0, 0,
@@ -694,7 +694,7 @@ void QWindowSystemInterface::handleTabletEnterProximityEvent(int device, int poi
void QWindowSystemInterface::handleTabletLeaveProximityEvent(int device, int pointerType, qint64 uid)
{
- qint64 timestamp = g_eventTimer.elapsed();
+ qint64 timestamp = g_eventTimer.msecsSinceReference() + g_eventTimer.elapsed();
QTabletEvent ev(QEvent::TabletLeaveProximity, QPointF(), QPointF(),
device, pointerType, 0, 0, 0,
dkazakov
edited the content of this paste.
(Show Details)
Oct 9 2017, 2:02 PM
dkazakov
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
dkazakov
updated the paste's language from
autodetect
to
autodetect
.
dkazakov
mentioned this in
D8201: Adds debug configuration for stylus latency tracking
.
Oct 9 2017, 2:09 PM
Log In to Comment