From 5989a0adae8c7c67ec67d8a739a7b68896aba626 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 31 Jul 2021 10:17:05 +0300 Subject: Window: Update contents when (re)shown IssueID #311 --- src/ui/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { d->isExposed = iFalse; d->isMinimized = iFalse; d->isInvalidated = iFalse; /* set when posting event, to avoid repeated events */ - d->isMouseInside = iTrue; + d->isMouseInside = iTrue; d->ignoreClick = iFalse; d->focusGainedAt = 0; d->keyboardHeight = 0; @@ -740,6 +740,7 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { postRefresh_App(); return iTrue; case SDL_WINDOWEVENT_RESTORED: + case SDL_WINDOWEVENT_SHOWN: updateSize_Window_(d, iTrue); invalidate_Window_(d, iTrue); d->isMinimized = iFalse; -- cgit v1.2.3