Merge pull request #21167 from sys27/bugfix/fix-exit-when-controller-connected

Fix #20356 - Flatpak application doesn't close until controller is unplugged
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-01-28 23:16:45 +01:00
commit 8de5b45bbe
1 file changed
+4
+4
View File
@@ -1797,8 +1797,12 @@ int main(int argc, char *argv[]) {
while (true) {
SDL_Event event;
while (SDL_WaitEventTimeout(&event, 100)) {
if (g_QuitRequested || g_RestartRequested)
break;
ProcessSDLEvent(window, event, &inputTracker);
}
if (g_QuitRequested || g_RestartRequested)
break;