From c3fd663b4945a646be9a8d3a7656a66747733147 Mon Sep 17 00:00:00 2001 From: Agetian Date: Mon, 25 Nov 2024 18:32:19 +0300 Subject: [PATCH] - Only mark Resizable as false on non-fullscreen setups, helps avoid corner cases when fullscreen fails on Linux (e.g. on multiple monitor setups) (#6627) --- forge-gui-mobile-dev/src/forge/app/GameLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-gui-mobile-dev/src/forge/app/GameLauncher.java b/forge-gui-mobile-dev/src/forge/app/GameLauncher.java index a924eaee7da..8c6e1dd19da 100644 --- a/forge-gui-mobile-dev/src/forge/app/GameLauncher.java +++ b/forge-gui-mobile-dev/src/forge/app/GameLauncher.java @@ -25,7 +25,6 @@ public class GameLauncher { Configuration.GLFW_LIBRARY_NAME.set("glfw_async"); } Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration(); - config.setResizable(false); ApplicationListener start = Forge.getApp(new Lwjgl3Clipboard(), new Main.DesktopAdapter(switchOrientationFile),//todo get totalRAM && isTabletDevice assetsDir, false, false, 0, false, 0, "", ""); if (Config.instance().getSettingData().fullScreen) { @@ -34,6 +33,7 @@ public class GameLauncher { config.setHdpiMode(HdpiMode.Logical); } else { config.setWindowedMode(Config.instance().getSettingData().width, Config.instance().getSettingData().height); + config.setResizable(false); } config.setTitle("Forge - " + versionString); config.setWindowListener(new Lwjgl3WindowAdapter() {