@ninja- Your code works, but Minecraft still doesn't use Wayland. It appears to use GLX still, and xeyes can tell where my cursor is on the surface. If I disable Xwayland, Minecraft crashes at com.mojang.blaze3d.platform.GLX._initGlfw at line 79 in "SourceFile". Did you get different results? I assume you didn't, since GLX is explicitly mentioned, so I assume that blaze3d depends directly on GLX unfortunately. I wonder what it uses it for, when GLFW should be enough. Maybe it can be worked around without changing the source code.
Actually, it seems that Minecraft isn't using the GLFW I compiled somehow, nevermind? Will need to debug this further