diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-09-17 14:27:15 +0300 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-09-17 15:22:15 +0200 |
commit | 3e1a9ef760e6bde533d41a00be28e1cdc7d8d713 (patch) | |
tree | f91cf1685b2058ed94e276036cb82e4df0a5fca7 | |
parent | ed912471bd449044ddc36b902ebb32b53ee548de (diff) | |
download | qtwayland-3e1a9ef760e6bde533d41a00be28e1cdc7d8d713.tar.gz |
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>
-rw-r--r-- | src/client/qwaylandscreen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp index 943e29a0..88667ae0 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; |