diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -859,11 +859,11 @@ void processEvents_App(enum iAppEventMode eventMode) { | |||
859 | case SDL_APP_LOWMEMORY: | 859 | case SDL_APP_LOWMEMORY: |
860 | clearCache_App_(); | 860 | clearCache_App_(); |
861 | break; | 861 | break; |
862 | case SDL_APP_WILLENTERFOREGROUND: | 862 | case SDL_APP_DIDENTERFOREGROUND: |
863 | postRefresh_App(); | 863 | postRefresh_App(); |
864 | break; | 864 | break; |
865 | case SDL_APP_TERMINATING: | ||
866 | case SDL_APP_WILLENTERBACKGROUND: | 865 | case SDL_APP_WILLENTERBACKGROUND: |
866 | case SDL_APP_TERMINATING: | ||
867 | savePrefs_App_(d); | 867 | savePrefs_App_(d); |
868 | saveState_App_(d); | 868 | saveState_App_(d); |
869 | break; | 869 | break; |
@@ -1023,7 +1023,9 @@ static int run_App_(iApp *d) { | |||
1023 | arrange_Widget(findWidget_App("root")); | 1023 | arrange_Widget(findWidget_App("root")); |
1024 | d->isRunning = iTrue; | 1024 | d->isRunning = iTrue; |
1025 | SDL_EventState(SDL_DROPFILE, SDL_ENABLE); /* open files via drag'n'drop */ | 1025 | SDL_EventState(SDL_DROPFILE, SDL_ENABLE); /* open files via drag'n'drop */ |
1026 | #if defined (iPlatformDesktop) | ||
1026 | SDL_AddEventWatch(resizeWatcher_, d); | 1027 | SDL_AddEventWatch(resizeWatcher_, d); |
1028 | #endif | ||
1027 | while (d->isRunning) { | 1029 | while (d->isRunning) { |
1028 | processEvents_App(waitForNewEvents_AppEventMode); | 1030 | processEvents_App(waitForNewEvents_AppEventMode); |
1029 | runTickers_App_(d); | 1031 | runTickers_App_(d); |