mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
[Mobile-Dev] Fix alt-tab when fullscreen
This commit is contained in:
@@ -101,8 +101,10 @@ public class Main {
|
|||||||
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
||||||
config.setResizable(false);
|
config.setResizable(false);
|
||||||
config.setWindowedMode(desktopMode ? desktopScreenWidth : screenWidth, desktopMode ? desktopScreenHeight : screenHeight);
|
config.setWindowedMode(desktopMode ? desktopScreenWidth : screenWidth, desktopMode ? desktopScreenHeight : screenHeight);
|
||||||
if (desktopMode && fullscreenFlag)
|
if (desktopMode && fullscreenFlag) {
|
||||||
config.setFullscreenMode(Lwjgl3ApplicationConfiguration.getDisplayMode());
|
config.setFullscreenMode(Lwjgl3ApplicationConfiguration.getDisplayMode());
|
||||||
|
config.setAutoIconify(true); //fix alt-tab when running fullscreen
|
||||||
|
}
|
||||||
config.setTitle("Forge");
|
config.setTitle("Forge");
|
||||||
if (desktopMode)
|
if (desktopMode)
|
||||||
config.setHdpiMode(HdpiMode.Logical);
|
config.setHdpiMode(HdpiMode.Logical);
|
||||||
|
|||||||
Reference in New Issue
Block a user