diff --git a/src/plugins/platforms/wasm/qwasmcompositor.cpp b/src/plugins/platforms/wasm/qwasmcompositor.cpp index 30c61d2668..959f3dbf2d 100644 --- a/src/plugins/platforms/wasm/qwasmcompositor.cpp +++ b/src/plugins/platforms/wasm/qwasmcompositor.cpp @@ -962,6 +962,8 @@ bool QWasmCompositor::processPointer(const PointerEvent& event) } m_windowManipulation.onPointerMove(event); + if (m_windowManipulation.operation() != WindowManipulation::Operation::None) + requestUpdate(); break; } case EventType::PointerEnter: diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index bfcc556d6d..5cdee1a8d0 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -84,11 +84,16 @@ void QWasmWindow::setGeometry(const QRect &rect) if (r.y() < yMin) r.moveTop(yMin); } - if (!m_windowState.testFlag(Qt::WindowFullScreen) && !m_windowState.testFlag(Qt::WindowMaximized)) + bool shouldInvalidate = true; + if (!m_windowState.testFlag(Qt::WindowFullScreen) + && !m_windowState.testFlag(Qt::WindowMaximized)) { + shouldInvalidate = m_normalGeometry.size() != r.size(); m_normalGeometry = r; + } QPlatformWindow::setGeometry(r); QWindowSystemInterface::handleGeometryChange(window(), r); - invalidate(); + if (shouldInvalidate) + invalidate(); } void QWasmWindow::setVisible(bool visible)