This is still an issue as of version 1.18.1, WM_CLASS includes the version, so it's impossible to identify Minecraft windows realiably as versions change.
This is what xprop gives me on Linux:
_NET_WM_ICON_NAME(UTF8_STRING) = "Minecraft 1.18.1"_NET_WM_NAME(UTF8_STRING) = "Minecraft 1.18.1"WM_LOCALE_NAME(STRING) = "en_US.UTF-8"WM_ICON_NAME(STRING) = "Minecraft 1.18.1"WM_NAME(STRING) = "Minecraft 1.18.1"WM_CLASS(STRING) = "Minecraft 1.18.1", "Minecraft 1.18.1"
I'd expect WM_CLASS to be just "Minecraft" or "minecraft".
@violine1101 this is not a duplicate of MCL-10365, so I wouldn't consider it resolved
Thanks
@Ashenguard the environment specified on this ticket is Linux (and it's been resolved). Open a new ticket if you have a similar issue on windows (you can mention this ticket, MCL-18924, for context).