diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-10-03 15:49:55 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-10-04 07:16:03 +0000 |
commit | 35f07de36baecc0fff7a2073995425b4da308220 (patch) | |
tree | 782cde0a7bf11f56708ce020841cec90ecff8e8f | |
parent | 5f8db38e49b5bee4962fa9ac048c23a3faae587b (diff) | |
download | qtwayland-35f07de36baecc0fff7a2073995425b4da308220.tar.gz |
Don't send ivi_surface configure events with negative size
Similarly to how we don't do it for xdg_shell or wl_shell.
Change-Id: I61cd453858c9fdff148364f4dfb85c345943725c
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r-- | src/compositor/extensions/qwaylandivisurface.cpp | 4 |
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()); } |