mojira.dev
MC-68754

Exiting fullscreen disables window resize

When exiting fullscreen (with F11 or through video settings) you can't click maximize until you restart the game.
This happens on Windows 7, but not on Ubuntu 16.4.

Code analysis

Outdated code analysis by @unknown is found here

New code analysis:
Based on MC-111254 the problem is indeed a LWJGL bug, now https://github.com/LWJGL/lwjgl/issues/142
As a hacky workaround (as stated in MC-111254), the method net.minecraft.client.Minecraft.toggleFullscreen() could be temporarily changed to:

/**
 * Toggles fullscreen mode.
 */
public void toggleFullscreen()
{
    try
    {
        //...

        Display.setFullscreen(this.fullscreen);
        // New temporary code
        if (!this.fullscreen) {
            Display.setResizable(false);
            Display.setResizable(true);
        }
        
        //...
    }
    catch (Exception exception)
    {
        LOGGER.error((String)"Couldn\'t toggle fullscreen", (Throwable)exception);
    }
}

Linked issues

MC-68728 Can't change the size of the window Resolved MC-68808 Problem with Maximize Button Window Game Resolved MC-77053 Exiting Fullscreen Disables Maximize Resolved MC-77094 Game window can no longer be resized after exiting fullscreen Resolved MC-77144 UNABLE to Resize Minecraft window Resolved

Attachments

Comments 133

Confirmed

Fixed in prerelease 2

The bug exists again in 1.8.2-pre5
I can maximize or do whatever with the window before I enter to fullscreen. After I exit from fullscreen, I cannot maximize the window, the size is fixed.

Windows 8.1 64bit, 1.6.5 Launcher, 1.8.0_25 64bit Java

Same here. Back again in 1.8.2-pre5. We should wait until pre6 comes out tomorrow, though, before doing anything.

Still exists in 1.8.2-pre6

123 more comments

Can confirm for Minecraft 1.12-pre5

Confirmed for 1.12.
Very annoying bug 😞

Finally it's fixed!

Fixed in 1.13 snapshots (tested in 17w46a). LWJGL?

Yep. Already marked as fixed in 17w43a, when the game updated to LWJGL 3.

ninosfl

(Unassigned)

Confirmed

fullscreen, fullscreen-mode, lwjgl, resize, window

Minecraft 1.8-pre1, Minecraft 1.8.1, Minecraft 1.8.2-pre6, Minecraft 1.8.2-pre7, Minecraft 1.8.2, ..., Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 5, Minecraft 1.12

Minecraft 1.8-pre3, Minecraft 17w43a

Retrieved