Minecraft now ships a version of LWJGL that supports changing the
WM_CLASShint. Now all you need to do is for each profile for which you want to change
WM_CLASS, edit the profile and add the argument
-DLWJGL_WM_CLASS=Minecraftto the list of JVM arguments (you may need to check the box for it first). Be sure to include a space before the argument.
This is a nightly build of LWJGL that supports the
LWJGL_WM_CLASS JVM property to allow for setting the
WM_CLASS hint, which allows for better desktop
integration with GNOME Shell and possibly other desktop environments.
- If you have the launcher open, close it.
- Download the installer and save it into your .minecraft folder.
patch-lwjgl-versionto be executable.
.minecraft/patch-lwjgl-version <minecraft version number>for each version of Minecraft with which you want to use the nightly build. This will create a new game version called
<version>-WM_CLASS. If you do not want this, use
--in-placeas the first argument to the installer, e.g.
.minecraft/patch-lwjgl-version -i 1.6.4-OptiFine_HD_U_C6.
- Open the Minecraft launcher.
For each profile with which you want to use the nightly, edit the
profile and add the argument
-DLWJGL_WM_CLASS=Minecraftto the list of JVM arguments (you may need to check the box for it first). Be sure to include a space before the argument. Also, if you did not use the in-place option, change the game version to
<version>is the version number you gave to the installer.
- Play the game.