[MC-1159] Mouse wrongly positioned in fullscreen Created: 29/Oct/12  Updated: 07/May/15  Resolved: 12/Sep/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.3, Minecraft 1.4.4, Minecraft 1.4.5, Snapshot 12w50b, Minecraft 1.4.7, Snapshot 13w02b, Snapshot 13w03a, Snapshot 13w04a, Snapshot 13w05b, Snapshot 13w06a, Minecraft 1.6.2
Fix Version/s: Minecraft 1.6.1

Type: Bug
Reporter: [Mod] CubeTheThird Assignee: [Mojang] Nathan Adams
Resolution: Fixed Votes: 19
Labels: center, interface, menu, mouse, position
Environment:

Windows 7 64bit, Windows XP 32 bit, Linux 64 bit, Linux 32 bit. Java 7.09


Issue Links:
Duplicate
is duplicated by MC-7757 Inventory Cursor Glitch Resolved
is duplicated by MC-2057 Mouse bug on full screen Resolved
CHK:
Confirmation Status: Confirmed

 Description   

When opening an interface (eg crafting menu) while the game is in fullscreen, the mouse is not placed at the center of the screen, but rather in the bottom left quadrant of the screen.

What I expected to happen was...:
Opening an interface and the mouse being in the center of the screen.

What actually happened was...:
The mouse was in the bottom left quadrant of the screen

Steps to Reproduce:
1. Open any game in minecraft and put the game in fullscreen (either through menu option or F11)
2. Open an interface, such as inventory, but don't move the mouse
3. Notice mouse is not centered.



 Comments   
Comment by [Mod] CubeTheThird [ 12/Sep/13 ]

Seems to have been fixed as of 1.6.1

Comment by Grave [ 11/Aug/13 ]

Still an issue as of this post.

Comment by [Mod] CubeTheThird [ 06/May/13 ]

@Evan, could you please clarify?

Comment by Evan Voogd [ 05/May/13 ]

Can you add an Attachment?

Comment by [Mod] CubeTheThird [ 06/Mar/13 ]

@Uku, jonathan2520: I am simply stating that the current behaviour follows that of a bug (an inconsistent behaviour of sorts), and needs to be corrected. The proposition of changing said behaviour, regardless of the change, diverging from the original and apparent intended behaviour is considered that of a feature request, which is why I recommend putting it on the forums. I am not stating that this proposed fix is wrong/invalid, but rather this may not be the best place to bring attention to it.

Comment by jonathan2520 [ 06/Mar/13 ]

Hey, wow. Apparently LWJGL has had all the plumbing in place for a few years. Apply Uku's fix right nao!

CubeTheThird: I think this is a bug for practical purposes. Its supposed status as feature of some sort is contested, at least.

Comment by [Mod] CubeTheThird [ 06/Mar/13 ]

If you want to request that as a feature, I would recommend posting it on the MC forums here.

Comment by Uku Hirvesoo [ 06/Mar/13 ]

I'd have to agree with jonathan2520 & adam giraudet.
Please just remove the centering feature and let it remember the position. It's very frustrating. On my own computer I always run a personal mod that removes the line "Mouse.setCursorPosition(...)" from MouseHelper.ungrabMouseCursor(). Actual production code would likely need some additional checks if the window size changes, but shouldn't be too complicated.

Comment by Ben Trigg [ 23/Feb/13 ]

Worked for me in 1.4.7 release?

Comment by [Mod] CubeTheThird [ 09/Feb/13 ]

I will assume you mean 13w06a.

Comment by Ian Fiveonethreethree [ 09/Feb/13 ]

Bug is still present in 13w06a
Windows 7 64 bit 1920x1080 resolution

Comment by Johnathan Davis [ 24/Jan/13 ]

Issue is still apparent in the newest update, 13w04a, is present in 13w03a, as well as 13w02b for Environments Windows 8 x64, Java 7 Update 9, J Just so everyone is aware. If I wanted to fix it, I just had to maximize my window before going fullscreen.

Comment by code.vtek [ 18/Jan/13 ]

Issue still occurs in Update 1.4.7 Re-log is required to reset. Hopefully issue is addressed.

Comment by adam giraudet [ 13/Jan/13 ]

ah sry I went from maximized into fullscreen not windowed into fullscreen. It appears into the 1st slot of the hotbar. Also all minecraft would have to do is recenter the pointer. This it what happens in the web version (it also causes that flickering mouse thing in the web version (maybe if it only recentered after fullscreening)) also I fail to see how this could REALLY effect how you play minecraft. Also remembering where the mouse was would be nice

Comment by Kumasasa [ 13/Jan/13 ]

not fixed for Win7, Java 7 U 9

Comment by jonathan2520 [ 13/Jan/13 ]

13w02b: Not fixed for 13w02b/OS X 10.6.8. Fullscreen just uses the would-be center of the last window size, which is fortunately pretty close if you maximized the window before going fullscreen.

Wouldn't it be nice if Minecraft remembered the last pointer position? When doing a lot of inventory work it feels pretty awkward to have it reset to the same place every time, even if that place is the center. Better to place it where it was when I last closed an inventory (or menu or the like), I'd say. If I leave the pointer somewhere, I want it to stay there as in any other application.

Comment by mid_kid [ 13/Jan/13 ]

not fixed for me (linux 64 bit, java JDK 7 update 10, minecraft 13w12b)

Comment by adam giraudet [ 12/Jan/13 ]

attempt to reproduce failed (13w02b) maybe fixed?

Comment by Austin Johnson [ 01/Jan/13 ]

Issue still occurs in 1.4.6 release. It is cause by pushing F11 from a non-maximized window. Screen Resolution: 1920x1080

Comment by Kumasasa [ 17/Dec/12 ]

Can confirm on a monitor 1680 x 1050.
This issue is half fixed:

  • If the game starts in fullscreen mode: Works not
  • If the game starts in windowed mode: Works
  • If the game starts in windowed mode and is fullscreened by F11: Works not
  • If the game starts in windowed mode and mode is maximized (but still windowed): Works
  • If the windowed, maximised mode is fullscreened by F11: Still Works !
Comment by Mitchell Harris [ 17/Dec/12 ]

I am still getting this issue on 1.4.6 pre-release. I am using a 16:10 screen with a resolution of 1680x1050 if that helps.

Comment by Sean [ 15/Dec/12 ]

I can confirm this for Mac. Still occurs in snapshot 12w50b

Comment by [Mod] CubeTheThird [ 15/Nov/12 ]

Updated. Still occurs on 1.4.4.

Comment by Kumasasa [ 07/Nov/12 ]

Confirmed

Comment by Selbram (Tory Clement) [ 03/Nov/12 ]

I have tested this and can confirm. If you use F11 to go fullscreen and then open the inventory, the mouse is not in the center where I expect it to be. It appears in the bottom left quadrant centered.

Comment by Chalmes (Jon) [ 29/Oct/12 ]

Confirmed.

When playing MC in a window, the mouse cursor defaults to the centre.

When playing MC fullscreen, the size of the window in windowed mode is used to determine where the cursor is placed.

So if you make your MC window really small, then switch to fullscreen and open your inventory, the cursor will be right down the bottom left.
If you then go back to windowed, make the window almost fit the screen, switch back and open inventory, the cursor will almost be in the correct place.

Generated at Sun Jan 12 11:53:31 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.