From c71b513bc41f9c360151dc6e6be1b772683120f1 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 14 Dec 2025 18:09:20 -0600 Subject: [PATCH] Pump the Qt event loop before creating the SDL window --- app/streaming/session.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index d5c92d39..b924211e 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1742,6 +1742,12 @@ void Session::exec() return; } + // Pump the Qt event loop one last time before we create our SDL window + // This is sometimes necessary for the QML code to process any signals + // we've emitted from the async connection thread. + QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents); + QCoreApplication::sendPostedEvents(); + int x, y, width, height; getWindowDimensions(x, y, width, height);