diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 09523c0..e2847c8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/settings.gradle b/settings.gradle index 764c19d..405af85 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,7 +17,7 @@ pluginManagement { } plugins { - id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.29' + id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.30' } rootProject.name = "lwjgl3ify" diff --git a/src/main/java/me/eigenraven/lwjgl3ify/core/Config.java b/src/main/java/me/eigenraven/lwjgl3ify/core/Config.java index 077af75..c2013f7 100644 --- a/src/main/java/me/eigenraven/lwjgl3ify/core/Config.java +++ b/src/main/java/me/eigenraven/lwjgl3ify/core/Config.java @@ -45,6 +45,7 @@ public class Config { public static String X11_CLASS_NAME = "minecraft"; public static String COCOA_FRAME_NAME = "minecraft"; + public static String WAYLAND_APP_ID = "minecraft"; public static String LWJGL3IFY_VERSION = Tags.VERSION; @@ -147,6 +148,11 @@ public static void reloadConfigObject() { CATEGORY_WINDOW, COCOA_FRAME_NAME, "OSX-only - identifier used to save and restore the window position and size"); + WAYLAND_APP_ID = config.getString( + "waylandAppId", + CATEGORY_WINDOW, + WAYLAND_APP_ID, + "Linux-only - change the Wayland app id, which is used by your window manager to identify the running application"); INPUT_INVERT_WHEEL = config .getBoolean("invertScrollWheel", CATEGORY_INPUT, INPUT_INVERT_WHEEL, "Invert scrolling direction"); diff --git a/src/main/java/org/lwjglx/opengl/Display.java b/src/main/java/org/lwjglx/opengl/Display.java index d4577b1..9c0c3d1 100644 --- a/src/main/java/org/lwjglx/opengl/Display.java +++ b/src/main/java/org/lwjglx/opengl/Display.java @@ -196,6 +196,7 @@ public static void create(PixelFormat pixelFormat, ContextAttribs attribs, long glfwWindowHintString(GLFW_X11_CLASS_NAME, Config.X11_CLASS_NAME); glfwWindowHintString(GLFW_COCOA_FRAME_NAME, Config.COCOA_FRAME_NAME); + glfwWindowHintString(GLFW_WAYLAND_APP_ID, Config.WAYLAND_APP_ID); if (Config.WINDOW_CENTERED) { glfwWindowHint(GLFW_POSITION_X, (monitorWidth - mode.getWidth()) / 2);