summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/compositor/extensions/qwaylandivisurface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandivisurface.cpp b/src/compositor/extensions/qwaylandivisurface.cpp
index 716cc868..f6b87fb9 100644
--- a/src/compositor/extensions/qwaylandivisurface.cpp
+++ b/src/compositor/extensions/qwaylandivisurface.cpp
@@ -198,6 +198,10 @@ QWaylandIviSurface *QWaylandIviSurface::fromResource(wl_resource *resource)
*/
void QWaylandIviSurface::sendConfigure(const QSize &size)
{
+ if (!size.isValid()) {
+ qWarning() << "Can't configure ivi_surface with an invalid size" << size;
+ return;
+ }
Q_D(QWaylandIviSurface);
d->send_configure(size.width(), size.height());
}