|
@@ -104,8 +104,8 @@ Android_PumpEvents(_THIS)
|
|
|
} else {
|
|
|
if (isPausing || SDL_SemTryWait(Android_PauseSem) == 0) {
|
|
|
/* We've been signaled to pause, but before we block ourselves,
|
|
|
- we need to make sure that certain key events have reached the app */
|
|
|
- if (SDL_HasEvent(SDL_WINDOWEVENT) || SDL_HasEvent(SDL_APP_WILLENTERBACKGROUND) || SDL_HasEvent(SDL_APP_DIDENTERBACKGROUND) ) {
|
|
|
+ we need to make sure that the very last event have reached the app */
|
|
|
+ if (SDL_HasEvent(SDL_APP_DIDENTERBACKGROUND)) {
|
|
|
isPausing = 1;
|
|
|
}
|
|
|
else {
|