diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-09 15:08:43 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-09 15:08:43 +0300 |
commit | 75df73293c3ff154699c30e7756d271b93938492 (patch) | |
tree | 920bb41e863fd2725344e99ee1322fc9446166fb | |
parent | d7dd5de574f1c9652c2f5de5e5d00ec7980b89df (diff) |
Window: Workaround for lack of window expose event
IssueID #264
-rw-r--r-- | src/ui/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 4cbb8d00..99430a05 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -769,8 +769,8 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { | |||
769 | d->focusGainedAt = SDL_GetTicks(); | 769 | d->focusGainedAt = SDL_GetTicks(); |
770 | setCapsLockDown_Keys(iFalse); | 770 | setCapsLockDown_Keys(iFalse); |
771 | postCommand_App("window.focus.gained"); | 771 | postCommand_App("window.focus.gained"); |
772 | d->isExposed = iTrue; | ||
772 | #if defined (iPlatformMobile) | 773 | #if defined (iPlatformMobile) |
773 | d->isExposed = iTrue; /* no expose event is sent, so now we know it's visible */ | ||
774 | /* Returned to foreground, may have lost buffered content. */ | 774 | /* Returned to foreground, may have lost buffered content. */ |
775 | invalidate_Window_(d); | 775 | invalidate_Window_(d); |
776 | postCommand_App("window.unfreeze"); | 776 | postCommand_App("window.unfreeze"); |