From 62128280c1d109539462203880447bd32283e08d Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Mon, 18 May 2026 09:58:46 +0300 Subject: [PATCH] Readd go_to_background call when quitting application --- src/main.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 03b3cc0..21b2e13 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -626,8 +626,12 @@ SDL_AppResult SDL_AppIterate(void *appstate) { #endif mS.m->update(); - if(mS.m->setToQuit) + if(mS.m->setToQuit) { + #ifdef __ANDROID__ + mS.m->input_app_about_to_go_to_background_callback(); + #endif return SDL_APP_SUCCESS; + } if(mS.m->input.hideCursor) { SDL_HideCursor(); @@ -836,8 +840,12 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) { } #endif - if(mS.m->setToQuit) + if(mS.m->setToQuit) { + #ifdef __ANDROID__ + mS.m->input_app_about_to_go_to_background_callback(); + #endif return SDL_APP_SUCCESS; + } return SDL_APP_CONTINUE; }