From 1ec850888d5bb8ffc002f91dbf4d255feedd2106 Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Mon, 29 Jun 2026 13:37:47 +0100 Subject: [PATCH] qt: Fix macOS freeze-on-boot caused by unprocessed events As far as I can tell the line added here really shouldn't be necessary and wasn't until a relatively recent change in either Qt or macOS. The exact reason behind the original issue is unclear, but by educated guess it could have been caused by some kind of race condition within Qt? --- src/citra_qt/citra_qt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/citra_qt/citra_qt.cpp b/src/citra_qt/citra_qt.cpp index 62fb24b9b..2ae052443 100644 --- a/src/citra_qt/citra_qt.cpp +++ b/src/citra_qt/citra_qt.cpp @@ -4444,6 +4444,9 @@ int LaunchQtFrontend(int argc, char* argv[]) { QObject::connect(&app, &QGuiApplication::applicationStateChanged, &main_window, &GMainWindow::OnAppFocusStateChanged); + // Process any pending events before executing the app (prevents freeze-on–boot on macOS) + app.processEvents(); + int result = app.exec(); return result; }