Lagrange [dev]

Window: Workaround for lack of window expose event

=> 11f816e71e8abf329a070b1dc4f7f7ddb7fe3339

diff --git a/src/ui/window.c b/src/ui/window.c
index 4cbb8d00..99430a05 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -769,8 +769,8 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) {
             d->focusGainedAt = SDL_GetTicks();
             setCapsLockDown_Keys(iFalse);
             postCommand_App("window.focus.gained");
+            d->isExposed = iTrue;
 #if defined (iPlatformMobile)
-            d->isExposed = iTrue; /* no expose event is sent, so now we know it's visible */
             /* Returned to foreground, may have lost buffered content. */
             invalidate_Window_(d);
             postCommand_App("window.unfreeze");
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/dev/cdiff/11f816e71e8abf329a070b1dc4f7f7ddb7fe3339
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
29.743872 milliseconds
Gemini-to-HTML Time
0.201047 milliseconds

This content has been proxied by September (ba2dc).