If compositor calls directly setSize() for surface, it changes only the
size of the surface's boundary. If it is needed to change the contents
of the surface synchronously, send_configure() must be called.
Change-Id: I9c607b57c6d31d4ada6621dc57063f36f24b9d95
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
d->surface->setSize(size);
}
+void WaylandSurface::sendConfigure(const QSize &size)
+{
+ Q_D(WaylandSurface);
+ if (d->surface->shellSurface())
+ d->surface->shellSurface()->sendConfigure(WL_SHELL_SURFACE_RESIZE_BOTTOM_RIGHT, size.width(), size.height());
+}
+
Qt::ScreenOrientations WaylandSurface::orientationUpdateMask() const
{
Q_D(const WaylandSurface);
void setPos(const QPointF &pos);
QSize size() const;
void setSize(const QSize &size);
+ void sendConfigure(const QSize &size);
Qt::ScreenOrientations orientationUpdateMask() const;
Qt::ScreenOrientation contentOrientation() const;