diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-09-01 15:30:42 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-09-01 15:41:53 +0200 |
commit | ae54be549e6ebeef829d5c1089d5307d00d0b791 (patch) | |
tree | 0059b89c3f93a824aa9993f330dd24a4892bb8f3 | |
parent | 056a150bd4fb0aa44488e02002136277ee8e5ed6 (diff) | |
download | qtwayland-ae54be549e6ebeef829d5c1089d5307d00d0b791.tar.gz |
Wayland: correct touch location
The window margins were offsetting the touch point in the wrong
direction.
Task-number: QTBUG-36602
Change-Id: Id8b31d2de4051f36d3ff4e088bbc9bd7cc84ca13
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
-rw-r--r-- | src/client/qwaylandinputdevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp index 4a100f79..014303f7 100644 --- a/src/client/qwaylandinputdevice.cpp +++ b/src/client/qwaylandinputdevice.cpp @@ -921,7 +921,7 @@ void QWaylandInputDevice::handleTouchPoint(int id, double x, double y, Qt::Touch tp.area = QRectF(0, 0, 8, 8); QMargins margins = win->frameMargins(); - tp.area.moveCenter(win->window()->mapToGlobal(QPoint(x+margins.left(), y+margins.top()))); + tp.area.moveCenter(win->window()->mapToGlobal(QPoint(x - margins.left(), y - margins.top()))); } tp.state = state; |