summaryrefslogtreecommitdiff
path: root/src/client/qwaylandscreen_p.h
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-09-22 16:36:26 +0300
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-09-24 10:43:15 +0200
commitbe93c343c581c3375b2fe4412ff7b2c76f8df253 (patch)
tree4da47bcb0458738208dd35c4744047a740ac6130 /src/client/qwaylandscreen_p.h
parent75cda1dcbcd7cddd1bd79218c305bf8814dc460f (diff)
downloadqtwayland-be93c343c581c3375b2fe4412ff7b2c76f8df253.tar.gz
Use the screen resolution to determine whether a screen is portrait
We were using the screen physical size to determine if a screen is portrait or landscape, but we may not always get a valid size. Instead use the screen resolution. The orientation is then calculated in the wl_output.done handler, since we don't know the resolution yet when receiving the first wl_output.geometry event. Change-Id: I3554f916e54db829f49fa3d1ea24f7ce1ff24e7c Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/client/qwaylandscreen_p.h')
-rw-r--r--src/client/qwaylandscreen_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/qwaylandscreen_p.h b/src/client/qwaylandscreen_p.h
index 866ac26e..49eeea67 100644
--- a/src/client/qwaylandscreen_p.h
+++ b/src/client/qwaylandscreen_p.h
@@ -103,6 +103,7 @@ private:
QRect mGeometry;
int mDepth;
int mRefreshRate;
+ int mTransform;
QImage::Format mFormat;
QSize mPhysicalSize;
QString mOutputName;