From 7c225c6abb9802f81dccb1ea8e32d1c05a63a538 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 4f0bbaba7..e2f5997ae 100644 --- a/src/citra_qt/citra_qt.cpp +++ b/src/citra_qt/citra_qt.cpp @@ -4456,6 +4456,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; }