It has never happened to me before but after I upgraded to Fedora 41, Minecraft is not able to mouse lock when playing. Moving the mouse too much above and it will go outside the window. But when I boot up GNOME in Xorg, it’s perfectly normal.
I made sure to keep the system up-to-date. The fix (FEDORA-2024-9c2fc14447 — bugfix update for mutter — Fedora Updates System) mentioned in (Cursor spawns in wrong positions in Minecraft guis) apparently did not work for me.
Any help is appreciated!