Mojira Archive
MC-65983

Mouse cursor moves off-window when accessing inventory (or item contents)

The bug occurs when accessing a contents box (like your inventory, chest contents, etc.) when running Minecraft in an windowed environment. When the window has focus, you can right-click to interact or use an item. However, if you access any contents box, the mouse cursor appears below the window (several inches below - out of the scope of the window). If you close the contents box with the keyboard (for example, 'E' to close your inventory), the mouse cursor disappears but any right-clicks are sent to the location where the mouse cursor exists (still below the window).

To mitigate this issue, you have to reopen a contents box (or your inventory), move the cursor from below the window to within the window, and then close the inventory. This has to be repeated every time you access a contents box.

I believe the fix is to center the cursor on the window and not place it below.