[1mdiff --git a/src/app.c b/src/app.c[m
[1mindex 366037dd..f2a7c5be 100644[m
[1m--- a/src/app.c[m
[1m+++ b/src/app.c[m
[36m@@ -2252,6 +2252,9 @@[m [mstatic int resizeWatcher_(void *user, SDL_Event *event) {[m
}[m
[m
iLocalDef iBool isResizeDrawEnabled_(void) {[m
[32m+[m[32m if (isMobile_Platform()) {[m
[32m+[m[32m return iFalse;[m
[32m+[m[32m }[m
#if defined (LAGRANGE_ENABLE_RESIZE_DRAW)[m
if (!isXSession_X11()) {[m
[1mdiff --git a/src/ui/window.c b/src/ui/window.c[m
[1mindex 8c2a36ac..5b8b4da3 100644[m
[1m--- a/src/ui/window.c[m
[1m+++ b/src/ui/window.c[m
[36m@@ -1577,14 +1577,27 @@[m [mvoid draw_MainWindow(iMainWindow *d) {[m
setCurrent_Text(d->base.text);[m
/* Check if root needs resizing. */ {[m
const iBool wasPortrait = isPortrait_App();[m
[31m-// iInt2 renderSize;[m
[31m-// SDL_GetRendererOutputSize(w->render, &renderSize.x, &renderSize.y);[m
[32m+[m[32m#if defined (iPlatformMobile)[m
[32m+[m[32m /* On a mobile device, the window doesn't get freely resized. The render size will[m
[32m+[m[32m change when the device orientation changes. */[m
[32m+[m[32m iInt2 renderSize;[m
[32m+[m[32m SDL_GetRendererOutputSize(w->render, &renderSize.x, &renderSize.y);[m
[32m+[m[32m if (!isEqual_I2(renderSize, w->size)) {[m
[32m+[m[32m updateSize_MainWindow_(d, iTrue);[m
[32m+[m[32m processEvents_App(postedEventsOnly_AppEventMode); /* apply changes immediately */[m
[32m+[m[32m if (isPortrait_App() != wasPortrait) {[m
[32m+[m[32m d->maxDrawableHeight = renderSize.y;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m#else[m
[32m+[m[32m /* On the desktop, we cannot process events now because that would interfere with[m
[32m+[m[32m regular input processing (currently drawing the window). */[m
if (updateSize_MainWindow_(d, iTrue)) {[m
[31m- //processEvents_App(postedEventsOnly_AppEventMode);[m
if (isPortrait_App() != wasPortrait) {[m
[31m- d->maxDrawableHeight = w->size.y; // renderSize.y;[m
[32m+[m[32m d->maxDrawableHeight = w->size.y;[m
}[m
}[m
[32m+[m[32m#endif[m
/* TODO: On macOS, a detached popup window will mess up the main window's rendering[m
completely. Looks like a render target mixup. macOS builds normally use native menus,[m
though, so leaving it in. */[m
text/plain
This content has been proxied by September (ba2dc).