summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qvideowindow.cpp
diff options
context:
space:
mode:
authorDoris Verria <doris.verria@qt.io>2024-01-16 17:41:22 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-01-17 18:58:44 +0000
commitc22a7a20bf292df2e65d86ea24ac6455ac0a88fd (patch)
tree02de53c83a082f3bb7b6cf09a78009df8ce9c028 /src/multimedia/video/qvideowindow.cpp
parenta77f558312c34a4ad390e217ff6f7620a3438760 (diff)
QVideoWindow: Immediately render window on an Expose event
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.5 Change-Id: Ib74c1ca9706fdc6d92ae8ce659a4fc345edc77d5 Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io> Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> (cherry picked from commit 7318eefeab392d102b9092d649e3f1f3ad12456b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 4ee2444b77fc8a000b21b106bc8f1b0ba706b14d)
Diffstat (limited to 'src/multimedia/video/qvideowindow.cpp')
-rw-r--r--src/multimedia/video/qvideowindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/video/qvideowindow.cpp b/src/multimedia/video/qvideowindow.cpp
index b3b13945c..48bae415a 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: