mojira.dev
MC-312114

Mouse cursor not captured when entering game on Linux in 26.3 making game unplayable

Issue when entering a world where the mouse cursor is not “captured” by the game meaning that the player can only “look around” so far as the cursor doesn’t reach the edge of their screen, making the game unplayable. I did not have this issue in 26.2 and have only experienced it in 26.3

Tested in a GNOME session, a Niri session, via gamescope -- each in fullscreen and windowed mode -- all yield the same behaviour. In case it is relevant, in windowed mode the player rotation immediately halts once the cursor leaves the confines of the window rather than the edge of the screen.

Only indicator I can see in the logs is Failed to create backend OpenGL regarding “renderpearl” and SDL, and some other for Failed to enable relative mouse mode: That operation is not supported. I have tried various attempts to fix and debug this myself, but haven’t been able to find an environmental fix on my end. I’ve attached the relevant log.

Environment

Linux distro: NixOS (wayland). Nvidia GPU. AMD CPU. Launching via "PrismLauncher" since I can't get the default minecraft launcher working on my machine.

Attachments

Comments 4

Thank you for helping us improve Minecraft! We saved your files:

[media]

I also use Wayland on NixOS, had the same issue, and I fixed this on my system by adding to my system configuration.nix:

environment.systemPackages = [ pkgs.sdl3.lib ];

then adding this environment variable to Minecraft (also using Prism Launcher):

LD_PRELOAD=/run/current-system/sw/lib/libSDL3.so

that fixed it. thank you!

Hi!
Thank you for your report!
However, this issue is Invalid.

Your game, launcher or server is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.

  • Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.

  • A world which had previously been opened with a modified client might be corrupted. Please try reproducing the issue in a newly generated world.

  • Any plugin issues need to be addressed to the creator of the plugin or resource pack.

  • If you have problems on large servers like Hypixel, please contact them first as they run modified server software.

Quick Links: 
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

cathe

(Unassigned)

Unconfirmed

26.3

Retrieved