mojira.dev
MC-266908

Set Wayland APP_ID for showing icon (Linux)

Since LWJGL 3.3.4 you can set the GLFW_WAYLAND_APP_ID. (https://javadoc.lwjgl.org/org/lwjgl/glfw/GLFW.html#GLFW_WAYLAND_APP_ID)

It's a name of desktop file in Linux. Wayland compositor will use it for showing icon.  You should simply add this code after GLFW.glfwInit():

 

if (GLFW.glfwGetPlatform() == GLFW.GLFW_PLATFORM_WAYLAND) {
  GLFW.glfwWindowHintString(GLFW.GLFW_WAYLAND_APP_ID, "minecraft");
}

Linked issues

Comments 0

No comments.

dmsmdms

Tommy Wallberg

Plausible

Platform

Low

UI

rendering

1.20.3 Pre-Release 1

Retrieved