From 1d4402e7ee9f208232227ded6add865b67e849af Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Thu, 23 Sep 2021 22:08:36 +0300

Subject: [PATCH 1/1] MainWindow: Tweaks to avoid flash at launch

When the window appears, it should have all the actual contents and not a placeholder.


src/ui/window.c | 14 ++++++--------

1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/ui/window.c b/src/ui/window.c

index 8197afd4..0863aa47 100644

--- a/src/ui/window.c

+++ b/src/ui/window.c

@@ -561,6 +561,7 @@ void init_MainWindow(iMainWindow *d, iRect rect) {

     SDL_EventState(SDL_SYSWMEVENT, SDL_TRUE);

 }

#endif

}

void deinit_MainWindow(iMainWindow *d) {

@@ -731,14 +732,11 @@ static iBool handleWindowEvent_MainWindow_(iMainWindow *d, const SDL_WindowEvent

 switch (ev->event) {

#if defined(iPlatformDesktop)

     case SDL_WINDOWEVENT_EXPOSED:

         /* Since we are manually controlling when to redraw the window, we are responsible

         postRefresh_App();

#if defined(LAGRANGE_ENABLE_WINDOWPOS_FIX)

         if (d->place.initialPos.x >= 0) {

@@ -918,7 +916,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) {

             if (SDL_GetWindowFlags(d->win) & SDL_WINDOW_HIDDEN) {

                 SDL_ShowWindow(d->win);

             }

             postCommand_App("media.player.update"); /* in case a player needs updating */

             return iTrue;

         }

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/patch/1d4402e7ee9f208232227ded6add865b67e849af.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
68.935245 milliseconds
Gemini-to-HTML Time
0.872648 milliseconds

This content has been proxied by September (3851b).