From 7cec1c3ea60694f98bdf8f68d2b5017b5b3f39e6 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Wed, 4 May 2016 12:30:04 +0200 Subject: QML compositors: Adjust for scale factor when positioning subsurfaces Change-Id: If861f790546e96aa1ee3781bbbed32ae423f49ba Reviewed-by: Pier Luigi Fiorini --- src/compositor/compositor_api/qwaylandquickitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compositor/compositor_api/qwaylandquickitem.cpp b/src/compositor/compositor_api/qwaylandquickitem.cpp index e46b38cc..d2a5036c 100644 --- a/src/compositor/compositor_api/qwaylandquickitem.cpp +++ b/src/compositor/compositor_api/qwaylandquickitem.cpp @@ -1114,7 +1114,8 @@ void QWaylandQuickItem::raise() */ void QWaylandQuickItem::handleSubsurfacePosition(const QPoint &pos) { - QQuickItem::setPosition(pos); + Q_D(QWaylandQuickItem); + QQuickItem::setPosition(pos * d->scaleFactor()); } QT_END_NAMESPACE -- cgit v1.2.1