From 4ee2444b77fc8a000b21b106bc8f1b0ba706b14d Mon Sep 17 00:00:00 2001 From: Doris Verria Date: Tue, 16 Jan 2024 17:41:22 +0100 Subject: QVideoWindow: Immediately render window on an Expose event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QWindow::requestUpdate() is used to signal that the window needs to be redrawn (typically because something changed), but the actual drawing will not happen until the next event loop iteration. On an Expose event, we need to immediately draw the window to avoid any delay. Replace the call to requestUpdate() on an Expose event with a direct call to render(), ensuring a prompt window rendering. Pick-to: 6.6 6.5 Change-Id: Ib74c1ca9706fdc6d92ae8ce659a4fc345edc77d5 Reviewed-by: Jøger Hansegård Reviewed-by: Artem Dyomin (cherry picked from commit 7318eefeab392d102b9092d649e3f1f3ad12456b) Reviewed-by: Qt Cherry-pick Bot --- src/multimedia/video/qvideowindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multimedia/video/qvideowindow.cpp b/src/multimedia/video/qvideowindow.cpp index 8ae6eb7ca..1c1009662 100644 --- a/src/multimedia/video/qvideowindow.cpp +++ b/src/multimedia/video/qvideowindow.cpp @@ -487,7 +487,7 @@ bool QVideoWindow::event(QEvent *e) case QEvent::Expose: d->isExposed = isExposed(); if (d->isExposed) - requestUpdate(); + d->render(); return true; default: -- cgit v1.2.3