diff --git a/plugins/platforms/wayland/wayland_output.cpp b/plugins/platforms/wayland/wayland_output.cpp --- a/plugins/platforms/wayland/wayland_output.cpp +++ b/plugins/platforms/wayland/wayland_output.cpp @@ -99,6 +99,8 @@ } updateWindowTitle(); }); + + surface->commit(Surface::CommitFlag::None); } XdgShellOutput::~XdgShellOutput() @@ -110,12 +112,11 @@ void XdgShellOutput::handleConfigure(const QSize &size, XdgShellSurface::States states, quint32 serial) { Q_UNUSED(states); - if (size.width() == 0 || size.height() == 0) { - return; + if (!size.isEmpty()) { + setGeometry(geometry().topLeft(), size); + emit sizeChanged(size); } - setGeometry(geometry().topLeft(), size); m_xdgShellSurface->ackConfigure(serial); - emit sizeChanged(size); } void XdgShellOutput::updateWindowTitle()