summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandquickitem.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-08-23 15:01:09 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-08-30 11:10:09 +0000
commitbc7e69b176816536bbd0a0ca3c4fd83b1ba160cd (patch)
tree9c7d5ce1466b26961ad748e218cfae9be476ef70 /src/compositor/compositor_api/qwaylandquickitem.h
parent2af5dce3e7ea3e341720c4212e1d0a12ca68f41c (diff)
Compositor: Update WaylandQuickItem size on new dpr or scaleFactor
updateSize() depends on both screen devicePixelRatio and output scaleFactor. Make sure to call it when they change. This still doesn't handle all cases, because there is no signal for when a screen device pixel ratio changes, but we update when we get a new screen, which should be good enough in most cases Change-Id: I4550cf580d4821e4b0f4da0d2eb7bb8d9ab823cf Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandquickitem.h')
-rw-r--r--src/compositor/compositor_api/qwaylandquickitem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandquickitem.h b/src/compositor/compositor_api/qwaylandquickitem.h
index aac88236c..653440aed 100644
--- a/src/compositor/compositor_api/qwaylandquickitem.h
+++ b/src/compositor/compositor_api/qwaylandquickitem.h
@@ -160,6 +160,7 @@ private Q_SLOTS:
void updateSize();
void updateBuffer(bool hasBuffer);
void updateWindow();
+ void updateOutput();
void beforeSync();
void handleSubsurfaceAdded(QWaylandSurface *childSurface);
void handleSubsurfacePosition(const QPoint &pos);