From 7343b233e457076d9419fb0f6e587ba13a7e79c8 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 14 Jun 2021 09:33:10 +0200 Subject: [PATCH] Render screen on window restored It should not be necessary, since screen_render() is called just after on SDL_WINDOWEVENT_EXPOSED, but in practice the window content might not be correctly displayed on restored if a rotation occurred while minimized. Note that calling screen_render() twice in a row on SDL_WINDOWEVENT_EXPOSED also "fixes" the issue. --- app/src/screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/screen.c b/app/src/screen.c index a09831a344..c70a95e3db 100644 --- a/app/src/screen.c +++ b/app/src/screen.c @@ -726,6 +726,7 @@ screen_handle_event(struct screen *screen, SDL_Event *event) { } screen->maximized = false; apply_pending_resize(screen); + screen_render(screen, true); break; } return true;