summaryrefslogtreecommitdiff
path: root/src/client/qwaylandscreen_p.h
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-09-06 00:26:20 +0300
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-09-08 14:06:08 +0200
commit929b4f03a67ec9577dcc9ed8981f69489b1e49a4 (patch)
tree057e5f9651fb491ece393f1703c53fa1c2273eb6 /src/client/qwaylandscreen_p.h
parent374cb3b2872652317baec299712d7dfde6d9c896 (diff)
downloadqtwayland-929b4f03a67ec9577dcc9ed8981f69489b1e49a4.tar.gz
Fix QWaylandScreen geometry and physical size
The wl_output.geometry event carries the physical size of the output, not the logical one. This happened to work only because the geometry event was sent before the mode event, which carries the logical size. Moreover, use the done event to send only one geometry change event instead of one per advertized mode. Change-Id: I5b09d56654aac149d90692bb5a3e050cc0d60cb6 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/client/qwaylandscreen_p.h')
-rw-r--r--src/client/qwaylandscreen_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/qwaylandscreen_p.h b/src/client/qwaylandscreen_p.h
index 90b8fc90..866ac26e 100644
--- a/src/client/qwaylandscreen_p.h
+++ b/src/client/qwaylandscreen_p.h
@@ -65,6 +65,8 @@ public:
int depth() const;
QImage::Format format() const;
+ QSizeF physicalSize() const Q_DECL_OVERRIDE;
+
QDpi logicalDpi() const Q_DECL_OVERRIDE;
void setOrientationUpdateMask(Qt::ScreenOrientations mask);
@@ -93,6 +95,7 @@ private:
const QString &make,
const QString &model,
int32_t transform) Q_DECL_OVERRIDE;
+ void output_done() Q_DECL_OVERRIDE;
int m_outputId;
QWaylandDisplay *mWaylandDisplay;