Made the application activity events consistent between iOS and Android

This commit is contained in:
Sam Lantinga 2012-01-08 13:42:03 -05:00
parent f7ad18f9fc
commit d3ab037501
2 changed files with 5 additions and 3 deletions

View file

@ -140,6 +140,7 @@ static void SDL_IdleTimerDisabledChanged(const char *name, const char *oldValue,
SDL_Window *window;
for (window = _this->windows; window != nil; window = window->next) {
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
}
}
@ -156,6 +157,7 @@ static void SDL_IdleTimerDisabledChanged(const char *name, const char *oldValue,
SDL_Window *window;
for (window = _this->windows; window != nil; window = window->next) {
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_GAINED, 0, 0);
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
}
}