From 959e4bf1e600016409e64073a8fb3965c3ad712a Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 11 Oct 2022 20:27:49 -0700 Subject: [PATCH] Qt: Fix flickering when frame-advancing on Windows --- src/platform/qt/DisplayGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/qt/DisplayGL.cpp b/src/platform/qt/DisplayGL.cpp index afae1440d..e4b2af9a0 100644 --- a/src/platform/qt/DisplayGL.cpp +++ b/src/platform/qt/DisplayGL.cpp @@ -309,7 +309,7 @@ void DisplayGL::pauseDrawing() { if (m_hasStarted) { m_isDrawing = false; QMetaObject::invokeMethod(m_painter.get(), "pause", Qt::BlockingQueuedConnection); - if (QGuiApplication::platformName() != "xcb") { + if (!shouldDisableUpdates()) { setUpdatesEnabled(true); } }