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>
This commit is contained in:
Giulio Camuffo 2014-09-17 14:27:15 +03:00
parent 1aeeab6e33
commit a3fa898878

View File

@ -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;