diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp index 15ffc1d..71354d9 100644 --- a/src/qwaylandlayersurface.cpp +++ b/src/qwaylandlayersurface.cpp @@ -96,7 +96,11 @@ void QWaylandLayerSurface::zwlr_layer_surface_v1_configure(uint32_t serial, uint if (!m_configured) { m_configured = true; window()->resizeFromApplyConfigure(m_pendingSize); +#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0) window()->handleExpose(QRect(QPoint(), m_pendingSize)); +#else + window()->sendRecursiveExposeEvent(); +#endif } else { // Later configures are resizes, so we have to queue them up for a time when we // are not painting to the window.