mojira.dev
MC-310162

Mouse cursor is not always centered when opening the inventory on wayland

When opening the inventory in survival mode, the mouse cursor sometimes does not get centered in the inventory properly. It stays at the position where it was located the last time the inventory was opened instead of moving to the center every time the inventory gets opened.

Steps to reproduce:

  1. Move your mouse constantly in one direction

  2. Press E multiple times and keep moving the mouse

  3. At some point (i needed several presses to reproduce), the mouse will no longer get placed in the middle of the inventory, despite the inventory slot being highlighted.

  4. After that, it continues to not get placed in the middle when opening the inventory again.

This happens while Exclusive Fullscreen was turned OFF and Fullscreen ON for me on wayland.

I have “follow_mouse = 1” set in hyprland in case that matters.

Environment

Arch linux running hyprland (wayland)

Linked issues

Comments 1

Hi!
Thank you for your report! 

We're already tracking this issue at MC-307253, so I will resolve and link this ticket as a Duplicate. 

I suggest also to browse through the main issue for potential fixes. 

If you would like to add a vote and any extra information to the main ticket it would be appreciated. 

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

L3-N0X

(Unassigned)

Unconfirmed

26.3 Snapshot 4

Retrieved