summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/qwaylandscreen.cpp')
-rw-r--r--src/client/qwaylandscreen.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp
index 9c34baeed..943e29a05 100644
--- a/src/client/qwaylandscreen.cpp
+++ b/src/client/qwaylandscreen.cpp
@@ -97,7 +97,10 @@ QImage::Format QWaylandScreen::format() const
QSizeF QWaylandScreen::physicalSize() const
{
- return mPhysicalSize;
+ if (mPhysicalSize.isNull())
+ return QPlatformScreen::physicalSize();
+ else
+ return mPhysicalSize;
}
QDpi QWaylandScreen::logicalDpi() const