diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 94b84935..21864dce 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1596,6 +1596,7 @@ static void checkPixelRatioChange_Window_(iWindow *d) { | |||
1596 | 1596 | ||
1597 | static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { | 1597 | static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { |
1598 | switch (ev->event) { | 1598 | switch (ev->event) { |
1599 | #if defined (iPlatformDesktop) | ||
1599 | case SDL_WINDOWEVENT_EXPOSED: | 1600 | case SDL_WINDOWEVENT_EXPOSED: |
1600 | if (!d->isExposed) { | 1601 | if (!d->isExposed) { |
1601 | drawBlank_Window_(d); /* avoid showing system-provided contents */ | 1602 | drawBlank_Window_(d); /* avoid showing system-provided contents */ |
@@ -1615,7 +1616,6 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { | |||
1615 | } | 1616 | } |
1616 | #endif | 1617 | #endif |
1617 | return iFalse; | 1618 | return iFalse; |
1618 | #if defined (iPlatformDesktop) | ||
1619 | case SDL_WINDOWEVENT_MOVED: { | 1619 | case SDL_WINDOWEVENT_MOVED: { |
1620 | if (d->isMinimized) { | 1620 | if (d->isMinimized) { |
1621 | return iFalse; | 1621 | return iFalse; |
@@ -1721,8 +1721,10 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { | |||
1721 | setCapsLockDown_Keys(iFalse); | 1721 | setCapsLockDown_Keys(iFalse); |
1722 | postCommand_App("window.focus.gained"); | 1722 | postCommand_App("window.focus.gained"); |
1723 | #if defined (iPlatformMobile) | 1723 | #if defined (iPlatformMobile) |
1724 | d->isExposed = iTrue; /* no expose event is sent, so now we know it's visible */ | ||
1724 | /* Returned to foreground, may have lost buffered content. */ | 1725 | /* Returned to foreground, may have lost buffered content. */ |
1725 | invalidate_Window_(d); | 1726 | invalidate_Window_(d); |
1727 | postRefresh_App(); | ||
1726 | #endif | 1728 | #endif |
1727 | return iFalse; | 1729 | return iFalse; |
1728 | case SDL_WINDOWEVENT_FOCUS_LOST: | 1730 | case SDL_WINDOWEVENT_FOCUS_LOST: |