mojira.dev

Thijmen

Assigned

No issues.

Reported

No issues.

Comments

Root cause: the launcher leaks GDK_BACKEND=x11 into the game process.

The launcher (CEF/Chromium) sets GDK_BACKEND=x11 and GTK_CSD=0 for its own processes, and the game's Java process inherits both (visible in /proc/<java pid>/environ). On Wayland, SDL3 draws window decorations through libdecor, and libdecor's GTK plugin cannot initialise GTK when GDK_BACKEND=x11 is set. libdecor then finds no other plugin and gives up:

libdecor-gtk-WARNING: Failed to initialize GTK
Failed to load plugin 'libdecor-gtk.so': failed to init
No plugins found, falling back on no decorations

Reproduced outside the game with the game's own LWJGL SDL build (lwjgl-sdl 3.4.3, SDL 3.4.14) on native Wayland:

  • normal session environment: GTK plugin loads, decorations are drawn

  • GDK_BACKEND=x11: the failure above, no decorations

  • GTK_CSD=0 alone: decorations are drawn (not the cause)

Suggested fix: the launcher should remove GDK_BACKEND (and GTK_CSD) from the environment before starting the game.

Workarounds: start the launcher with SDL_VIDEO_DRIVER=x11 (runs the game through XWayland, where GNOME draws the title bar), or install libdecor-0-plugin-1-cairo (a fallback plugin that doesn't use GTK).

Environment: Ubuntu 26.04.1, GNOME on Wayland, Mesa 26.0.8, Minecraft 26.3, launcher core 3.41.29, bootstrap 2.6.12, libdecor 0.2.5.