summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 08:19:16 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-06 08:19:16 +0300
commitaacb723fa99bb59bd7dcf94d089fc004a171f82d (patch)
tree6459f543c8cf33b297ac862f5386133df769879e
parentf38a940d722064e4b3fb2df6a6c0bcc025383ca0 (diff)
App: Refresh vs. event handling
Keep processing all pending events, not stopping for refresh prematurely.
-rw-r--r--src/app.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/app.c b/src/app.c
index 25037010..466a18f4 100644
--- a/src/app.c
+++ b/src/app.c
@@ -191,18 +191,12 @@ void processEvents_App(enum iAppEventMode eventMode) {
191 ((d->pendingRefresh || eventMode == postedEventsOnly_AppEventMode) && SDL_PollEvent(&ev))) { 191 ((d->pendingRefresh || eventMode == postedEventsOnly_AppEventMode) && SDL_PollEvent(&ev))) {
192 switch (ev.type) { 192 switch (ev.type) {
193 case SDL_QUIT: 193 case SDL_QUIT:
194 // if (isModified_Song(d->song)) {
195 // save_App_(d, autosavePath_App_(d));
196 // }
197 d->running = iFalse; 194 d->running = iFalse;
198 goto backToMainLoop; 195 goto backToMainLoop;
199 case SDL_DROPFILE: 196 case SDL_DROPFILE:
200 postCommandf_App("open url:file://%s", ev.drop.file); 197 postCommandf_App("open url:file://%s", ev.drop.file);
201 break; 198 break;
202 default: { 199 default: {
203 if (ev.type == SDL_USEREVENT && ev.user.code == refresh_UserEventCode) {
204 goto backToMainLoop;
205 }
206 iBool wasUsed = processEvent_Window(d->window, &ev); 200 iBool wasUsed = processEvent_Window(d->window, &ev);
207 if (ev.type == SDL_USEREVENT && ev.user.code == command_UserEventCode) { 201 if (ev.type == SDL_USEREVENT && ev.user.code == command_UserEventCode) {
208#if defined (iPlatformApple) && !defined (iPlatformIOS) 202#if defined (iPlatformApple) && !defined (iPlatformIOS)