 
                Wayland Fixes for Minecraft
While there are mods promising native Wayland support, they often require sacrificing important features like the window icon. Our mod offers full compatibility without compromises - you won't lose any details!
This project is an analog of the legacy-lwjgl3 mod and solves the same Wayland compatibility tasks, but for more modern game versions. All working principles described for legacy-lwjgl3 apply to this modification as well.
Important Note
If you're running the game in an isolated environment (for example, through a Flatpak version of the launcher), make sure to provide access to the following paths for the mod to work correctly.
Functional Capabilities
- Automatically creates .desktop file and places icons in correct directories for proper display
- Loads and displays virtual cursor on game screens to support cursor position setting
Settings
The virtual_mouse.export parameter can be set to true to export the loaded cursor to the cursors folder inside the game directory. This will save all cursor images along with metadata, create readable metadata files for each image, and a cursor.cursor file in cursor configuration format. This file can be used to generate a new X11 cursor using the xcursorgen program.
Used System Paths
- $HOME/.local/share/applications/com.mojang.minecraft.desktop(write)
- $HOME/.local/share/icons/hicolor/apps/{16x16, 32x32}/minecraft.png(write)
- $HOME/.local/share/icons/<theme>/cursors/left_ptr(read only)
- $HOME/.icons/<theme>/cursors/left_ptr(read only)
- /usr/share/icons/<theme>/cursors/left_ptr(read only)
Used System Programs
- xdg-icon-resource(for updating the icon system)
- gsettings(for getting information about cursor theme and size)
Credits
- KDE visual design group (the backup cursor file shipped with the mod is taken from KDE's breeze cursor theme)
 
                                