From 11c19ac6e2892a552e5302fdf71aeb3e6a7812e9 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Tue, 30 Aug 2022 08:06:07 +0200 Subject: [PATCH] Request frame when a window has been moved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Whenever a window's geometry changes, the scene has to be redrawn. This has not been the case if the size didn't change. Pick-to: 6.4 Change-Id: Ic85e1d75221134788ab2cf2e76bf2ba121f3335e Reviewed-by: Morten Johan Sørvig --- src/plugins/platforms/wasm/qwasmwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index 373c7dc6669..b94753b1a9c 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -150,6 +150,8 @@ void QWasmWindow::setGeometry(const QRect &rect) QWindowSystemInterface::handleGeometryChange(window(), r); if (shouldInvalidate) invalidate(); + else + m_compositor->requestUpdate(); } void QWasmWindow::setVisible(bool visible)