Hey,
I just ran into the same issue, and here is what I found:
mrmeszaros@debella ~> xprop WM_CLASS WM_NAMEWM_CLASS(STRING) = "Minecraft 1.13.2", "Minecraft 1.13.2"WM_NAME(STRING) = "Minecraft 1.13.2"
mrmeszaros@debella ~> xprop WM_CLASS WM_NAMEWM_CLASS: not found.WM_NAME(STRING) = "Minecraft Launcher"
A solution would be for the Launcher and Minecraft having the same WM_CLASS (window manager class) and different names.
Eg.:
WM_CLASS = "Minecraft" or "minecraft"
Do I understand correctly that the issue has to be solved in the Launcher (although it affects MC too)?
On Ubuntu 18.04 the Launcher does not receive a WM_CLASS even after the window is shown:
mrmeszaros@debella ~> xprop WM_CLASS WM_NAMEWM_CLASS: not found.WM_NAME(STRING) = "Minecraft Launcher"