From be93c343c581c3375b2fe4412ff7b2c76f8df253 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Mon, 22 Sep 2014 16:36:26 +0300 Subject: 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 --- src/client/qwaylandscreen_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/qwaylandscreen_p.h') 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; -- cgit v1.2.1