summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-09-17 14:27:15 +0300
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-09-17 15:22:15 +0200
commit3e1a9ef760e6bde533d41a00be28e1cdc7d8d713 (patch)
treef91cf1685b2058ed94e276036cb82e4df0a5fca7 /src
parented912471bd449044ddc36b902ebb32b53ee548de (diff)
Ignore negative screen physical size
Weston can send in some cases a negative physical size in the wl_output.geometry event. While it is not clear whether that is legal go the extra mile and catch it. Change-Id: Ie2fbab84e653ad77732a72b6ca61509eb7849895 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/client/qwaylandscreen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp
index 943e29a05..88667ae0d 100644
--- a/src/client/qwaylandscreen.cpp
+++ b/src/client/qwaylandscreen.cpp
@@ -97,7 +97,7 @@ QImage::Format QWaylandScreen::format() const
QSizeF QWaylandScreen::physicalSize() const
{
- if (mPhysicalSize.isNull())
+ if (mPhysicalSize.isEmpty())
return QPlatformScreen::physicalSize();
else
return mPhysicalSize;