Set wayland app_id (#196)

Co-authored-by: Raven Szewczyk <[email protected]>
This commit is contained in:
DownerCaseandRaven Szewczyk authored and GitHub committed 2025-01-13 21:22:12 +00:00
1 parent 2f8b1d992e
commit c4bfbd537b
4 files changed
+9 -2

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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"
@@ -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 class Config {
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");
@@ -196,6 +196,7 @@ public class Display {
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);