From 90f6d002d14a688bc3037685f803cb5921e2095e Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Wed, 3 Jan 2024 13:17:59 +0700 Subject: [PATCH] [FIX] Wayland support --- .../gravit/launcher/runtime/client/ClientLauncherProcess.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Launcher/src/main/java/pro/gravit/launcher/runtime/client/ClientLauncherProcess.java b/Launcher/src/main/java/pro/gravit/launcher/runtime/client/ClientLauncherProcess.java index 0a378b19..001502ca 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/runtime/client/ClientLauncherProcess.java +++ b/Launcher/src/main/java/pro/gravit/launcher/runtime/client/ClientLauncherProcess.java @@ -177,7 +177,7 @@ public void start(boolean pipeOutput) throws IOException, InterruptedException { var env = processBuilder.environment(); // https://github.com/Admicos/minecraft-wayland/issues/55 env.put("__GL_THREADED_OPTIMIZATIONS", "0"); - if(params.lwjglGlfwWayland) { + if(params.lwjglGlfwWayland && !params.profile.hasFlag(ClientProfile.CompatibilityFlags.WAYLAND_USE_CUSTOM_GLFW)) { env.remove("DISPLAY"); // No X11 } }