diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2016-05-04 12:30:04 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2016-05-04 10:46:24 +0000 |
commit | 7cec1c3ea60694f98bdf8f68d2b5017b5b3f39e6 (patch) | |
tree | 7a17de35ecc9bec8043c250439e5c49de2107709 | |
parent | f91d71d961c331be8030b6c7a916bed2004ddcf7 (diff) | |
download | qtwayland-7cec1c3ea60694f98bdf8f68d2b5017b5b3f39e6.tar.gz |
QML compositors: Adjust for scale factor when positioning subsurfaces
Change-Id: If861f790546e96aa1ee3781bbbed32ae423f49ba
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
-rw-r--r-- | src/compositor/compositor_api/qwaylandquickitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |