From fea907c33ee3cffbde851d4badcdc2eeaf06e1ed Mon Sep 17 00:00:00 2001 From: tomikun <60690056+alexytomi@users.noreply.github.com> Date: Mon, 27 Apr 2026 18:38:22 +0800 Subject: [PATCH] fix: Fullscreen not being toggled when coming from floating window --- .../src/main/java/net/kdt/pojavlaunch/MainActivity.java | 1 + app_pojavlauncher/src/main/jni/ctxbridges/gl_bridge.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MainActivity.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MainActivity.java index ab1e088c4..591e20038 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MainActivity.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MainActivity.java @@ -363,6 +363,7 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe mControlLayout.requestLayout(); mControlLayout.post(()->{ // Child of mControlLayout, so refreshing size here is correct + Tools.setFullscreen(this, setFullscreen()); minecraftGLView.refreshSize(); Tools.updateWindowSize(this); mControlLayout.refreshControlButtonPositions(); diff --git a/app_pojavlauncher/src/main/jni/ctxbridges/gl_bridge.c b/app_pojavlauncher/src/main/jni/ctxbridges/gl_bridge.c index 0a982d870..7f3571bac 100644 --- a/app_pojavlauncher/src/main/jni/ctxbridges/gl_bridge.c +++ b/app_pojavlauncher/src/main/jni/ctxbridges/gl_bridge.c @@ -126,7 +126,7 @@ void gl_swap_surface(gl_render_window_t* bundle) { } if (bundle->surface != NULL) eglDestroySurface_p(g_EglDisplay, bundle->surface); } else { - LOGW("Native surface dimensions (%d x %d) are invalid! Assuming android has already released window.\n", + LOGW("Native surface dimensions (%d x %d) are invalid! Assuming given nativeSurface is bad.\n", nativeWindowWidth, nativeWindowHeight); } if(bundle->newNativeSurface != NULL) {