-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac only: Mission window glides across screen when moved #590
Comments
Yes, after some digging it seems it's due to to the following code in EntityRenderer:
This is also the reason why the OSX Minecraft window is so reluctant to relinquish the mouse capture (Malmo contains code to ensure Minecraft doesn't keep hold of the mouse, which works fine on Windows and Linux). Any time the window gains focus and the mouse is outside of the window, the mouse is automatically grabbed, and moved to within the window... Unfortunately, if you are dragging the window, the window gets moved with the mouse (leaving the mouse outside the window client area again, thus re-triggering the move, shifting the window again, etc.etc.) |
As for the automatic centring of the window after resize...
Unfortunately there are a few problems with this:
will result in the window gradually creeping up and to the left. Secondly, this is lwjgl's helpful OSX implementation of the
So calling
Why is the Fortunately Ugh. |
To make matters worse, according to the lwjgl documentation for Admittedly, it takes a while for this to happen, and under normal working conditions the Minecraft window won't be changing size often, so it shouldn't present a problem in most cases. |
This has been "fixed" (allowing for the above ugliness) in 0.31.0. |
Am reopening this because the fix (making sure |
When I start up the Minecraft server, I'm able to move and adjust the screen as I please.
However, after starting a mission, any attempt to move the Minecraft window will send it spiralling out of control across the screen, often sliding out of vision, necessitating a restart of the server.
Additionally, adding a videoproducer to the XML centers the Minecraft window. Combined with the screen playing ice hockey with the Minecraft window, this can make it very annoying to run tests on a single laptop screen.
According to David Bignell, this only happens on Mac, hence the title.
The text was updated successfully, but these errors were encountered: