From 75df73293c3ff154699c30e7756d271b93938492 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 9 May 2021 15:08:43 +0300 Subject: Window: Workaround for lack of window expose event IssueID #264 --- src/ui/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui') 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) { d->focusGainedAt = SDL_GetTicks(); setCapsLockDown_Keys(iFalse); postCommand_App("window.focus.gained"); + d->isExposed = iTrue; #if defined (iPlatformMobile) - d->isExposed = iTrue; /* no expose event is sent, so now we know it's visible */ /* Returned to foreground, may have lost buffered content. */ invalidate_Window_(d); postCommand_App("window.unfreeze"); -- cgit v1.2.3