diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-31 10:17:05 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-31 10:17:05 +0300 |
commit | 5989a0adae8c7c67ec67d8a739a7b68896aba626 (patch) | |
tree | 6adb885213388997b9ff393c95765ea045c6a100 | |
parent | 4ada37a5cfdc66a429c0c7bee407f6cbe4d0ca84 (diff) |
Window: Update contents when (re)shown
IssueID #311
-rw-r--r-- | src/ui/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index c27053c2..6b8abb4d 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -414,7 +414,7 @@ void init_Window(iWindow *d, iRect rect) { | |||
414 | d->isExposed = iFalse; | 414 | d->isExposed = iFalse; |
415 | d->isMinimized = iFalse; | 415 | d->isMinimized = iFalse; |
416 | d->isInvalidated = iFalse; /* set when posting event, to avoid repeated events */ | 416 | d->isInvalidated = iFalse; /* set when posting event, to avoid repeated events */ |
417 | d->isMouseInside = iTrue; | 417 | d->isMouseInside = iTrue; |
418 | d->ignoreClick = iFalse; | 418 | d->ignoreClick = iFalse; |
419 | d->focusGainedAt = 0; | 419 | d->focusGainedAt = 0; |
420 | d->keyboardHeight = 0; | 420 | d->keyboardHeight = 0; |
@@ -740,6 +740,7 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { | |||
740 | postRefresh_App(); | 740 | postRefresh_App(); |
741 | return iTrue; | 741 | return iTrue; |
742 | case SDL_WINDOWEVENT_RESTORED: | 742 | case SDL_WINDOWEVENT_RESTORED: |
743 | case SDL_WINDOWEVENT_SHOWN: | ||
743 | updateSize_Window_(d, iTrue); | 744 | updateSize_Window_(d, iTrue); |
744 | invalidate_Window_(d, iTrue); | 745 | invalidate_Window_(d, iTrue); |
745 | d->isMinimized = iFalse; | 746 | d->isMinimized = iFalse; |