summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 032d68d1..aa854c72 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1755,11 +1755,14 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) {
1755 d->isExposed = iTrue; /* no expose event is sent, so now we know it's visible */ 1755 d->isExposed = iTrue; /* no expose event is sent, so now we know it's visible */
1756 /* Returned to foreground, may have lost buffered content. */ 1756 /* Returned to foreground, may have lost buffered content. */
1757 invalidate_Window_(d); 1757 invalidate_Window_(d);
1758 postRefresh_App(); 1758 postCommand_App("window.unfreeze");
1759#endif 1759#endif
1760 return iFalse; 1760 return iFalse;
1761 case SDL_WINDOWEVENT_FOCUS_LOST: 1761 case SDL_WINDOWEVENT_FOCUS_LOST:
1762 postCommand_App("window.focus.lost"); 1762 postCommand_App("window.focus.lost");
1763#if defined (iPlatformMobile)
1764 setFreezeDraw_Window(d, iTrue);
1765#endif
1763 return iFalse; 1766 return iFalse;
1764 case SDL_WINDOWEVENT_TAKE_FOCUS: 1767 case SDL_WINDOWEVENT_TAKE_FOCUS:
1765 SDL_SetWindowInputFocus(d->win); 1768 SDL_SetWindowInputFocus(d->win);