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);
    }
}

Related issues

MC-68728 Can't change the size of the window MC-68808 Problem with Maximize Button Window Game MC-77053 Exiting Fullscreen Disables Maximize MC-77094 Game window can no longer be resized after exiting fullscreen MC-77144 UNABLE to Resize Minecraft window MC-77565 Window not resizable after toggleing fullscreenmode MC-77617 Switching to full screen and back does not allow you to maximize the game MC-77720 After being in full screen mode, the maximize button in Windows is disabled and unable to resize window MC-77804 Can't maximize, or snap to left/right in windows 8.1 MC-77829 Unable to Click fullscreen MC-77837 Fullscreen Bug when the "fullscreen" window button is pressed. MC-77892 Can't maximise window after beeing in Fullscreen Mode MC-77904 No Clasping Winows in 1.8.3 for Windows 8.1 MC-77912 Cannot mazimise window after leaving fullscreen mode MC-77945 Maximize button grayed out MC-77965 Pressing F11 for fullscreen causes the window to not be resizeable. MC-78056 Fullscreen to windowed bug MC-78533 Cannot resize minecraft window MC-78536 Can't enlarge the window MC-78825 Maximize button dissapears after launching game in fullscreen mode and de-fullscreening MC-79921 Game window cannot be resized MC-80012 Fullscreen Bug on Windows 8 MC-80067 Resizing disabled after going into fullscreen MC-80102 this bug makes you unable to maximise the game window MC-80264 Can't resize game window after go full screen and then back to windowed MC-80524 F11 Bug MC-80661 Fullscreen/Resize Bug MC-80764 Screen Docking MC-80916 Fullscreen Button Greyed Out MC-81069 Cannot resize/maximise Minecraft window after exiting fullscreen MC-81095 Toggling Fullscreen made my window small and I cant make it big again MC-81648 Cant maximise window MC-81686 When exiting out of F11 Maximize button no longer works MC-81708 Exiting Fullscreen Disables Maximize MC-81949 Can't adjust window size after turning fullscreen off MC-81990 Fullscreening then un-fullscreening Minecraft PC results in being unable to maximize minecraft window MC-82025 setResizable window bug MC-82208 Window Maximize MC-82769 Fullscreen Bug MC-82770 Full screen bug MC-83853 Exiting fullscreen makes Windowed fullscreen impossible MC-84445 Can't maximize windows after going into full screen MC-84499 Launcher bug MC-84818 When pressing f11, after pressing it again to go into minimised, I can't maximuise the tab. MC-84934 Switching in and out of full screen disables the resizing of the Minecraft window. MC-85083 After full screening you cannot re size the window. MC-85446 Can't Resize Window MC-85473 After exit full screen maximize button is unsuable, Windows 10 MC-86505 fullscreen error MC-86642 Cannot maximize game after making it full screen MC-87734 Can't resize window after switching from fullscreen MC-88605 random exiting from game MC-88666 Fullscreen Bug MC-88828 Fullscreen fail MC-88884 Fullscreen -> Windowed: you cant resize window MC-88895 Full screen in windowed mode no longer works MC-88985 Full Screen bug MC-89746 Resize Window after Fullscreen Bug MC-89843 WIndows 10 f11 full screen MC-90710 Game is not re-sizable after fullscreen mode is turned off MC-91988 Full screen MC-92490 Exiting full screen mode forces window to lock size MC-94876 minecraft window problems MC-94943 Snapshots in window mode can't be resized after fullscreen MC-95981 When hitting exiting F11 on windows the minecraft window becomes un-resizible MC-96169 after going fullscreen can't maximize MC-97126 F11 fullscreen cancels full window MC-97372 After press F11 cant Maximize the Window MC-97785 Can't scale window after returning from fullscreen MC-98252 Going into fullscreen and then disabling fullscreen disables making Minecraft window bigger MC-98372 Can't change screen size 1.9 MC-98512 I can't resize my window MC-98679 Entering fullscreen and then exiting fullscreen causes the window size to lock MC-99341 Going fullscreen disables the maximise button MC-100118 Can't go into full window after being in fullscreen MC-101508 Fullscreen issue. MC-102075 Leaving fullscreen won't let the user maximize the window MC-104645 Bug with Fullscreen MC-107438 Can't maximize window after playing in full-screen mode. MC-108122 Resizing MC-110297 Exiting Fullscreen Disables Maximize MC-110853 Disabling fullscreen grays out maximize option MC-111254 Fullscreen Disables Window Resize MC-113189 Minecraft fullscreen bug MC-115174 Minecraft Full Screen MC-116351 After Exiting Full screen can't Maximize with out restarting Minecraft MC-117436 Can't resize/snap window after exiting full screen MCL-7719 Minecraft Launcher does not maximise after using fullscreen mode

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media]
galaxy_2alex

Confirmed

migrated

Fixed in prerelease 2

migrated

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

migrated

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

migrated

Still exists in 1.8.2-pre6

migrated

Regression in 1.8.1-pre6

migrated

I'm not having this bug. Does it only occur on a specific operating system?

migrated

Can confirm in 1.8.2-pre6. Looks like this bug is specific to Windows.

migrated

Still exists in 1.8.2-pre7

migrated

Confirmed for 1.7.10, 1.8, 1.8.1 and 15w23.

migrated

15w23

What?

migrated

15w23a! Never heard of ever?
I can't believe it!

migrated

Still in 1.8.3

migrated

Yep, it is still in 1.8.3 and the most annoying bug in the world. You are forced to restart the game if you want to use a maximized window after full-screen mode.

migrated

Can confirm still in 1.8.3 for me, also general resizing through dragging window corners is disabled until a restart.

(Running Windows 8, using Java 1.8.0 update 25 as downloaded by the new launcher)

migrated

It exists in the final releases of both 1.8.2 and 1.8.3 for me. I've tried 1.8.1 and it works fine there.

(Using Windows 10 Technical Preview 64bit and Java Version 8 Update 31 (build 1.8.0_31-b13))

migrated

Can confirm for 1.8.3 and Windows 10 Tech Preview.

migrated

confirming for 1.8.3 please fix this

migrated

Found a fix workaround!
If you use the MultiMC launcher, this stops happening.
My best guess is it has something to do with the normal launcher ¯_(ツ)_/¯

migrated

We can't confirm that as a true fix as it relates to a third-party launcher not under Mojang's control.

violine1101

Well, this is not a fix. It is a workaround.
Anyway, this bug did not occur before 1.8.2, so it is definitely not caused by the Launcher. If the MultiMC launcher "fixes" this, it propably modifies your Minecraft files.

Also notice: Other Launchers than the default Launcher are not supported. It is recommended to use the Minecraft Launcher provided by Mojang.

migrated

It doesn't change the files. My best guess is it uses different/newer libraries and LWGJL versions.
Or it starts it with different parameters. well i dunno ¯_(ツ)_/¯

Helps me though, great launcher.

migrated

I am having this very same problem only under 1.8.3. It seems odd to me that something this obvious would go unresolved this long and there be such a low number of votes and watchers on this ticket. I kind of thought the maximize button would be something a lot of people use. Because of boring reasons no one wants to hear, I must play Minecraft in non-fullscreen mode so it looks like I won't be able to use 1.8.3 at all until this is fixed...

migrated

I have 3 monitors, so I can't just keep exiting/entering fullscreen just to choose another track or YouTube video, so this is a really big inconvenience.

migrated

I can confirm this. Very frustrating.

migrated

Can confirm for 1.8.3

migrated

Can also confirm, under Windows 8.1 Pro x64, with two monitors of different resolutions. Is this a bug that only affects multi-monitor systems?

violine1101

I just tested it - This bug also occurs if you only use one monitor.

migrated

If you go to your .minecraft folder you can change the fullscreen line in options.text from fullscreen: true to fullscreen: false and it will fix the issue.

violine1101

It won't. If you are in fullscreen mode once and exit fullscreen mode again (via F11 or the options menu), the maximize button is disabled until you restart Minecraft, even if the fullscreen mode is not activated when Minecraft starts.

migrated

Yea for the option change to take effect you need to restart but it works because i just did it.

violine1101

No, it won't work. I always have the option fullscreen in options.txt set to false. When I start Minecraft with the Launcher, Minecraft is not in fullscreen mode and I can maximize and restore the window as often as I want. But once I've pressed F11 or enabled fullscreen mode via the video settings and later pressed F11 again or disabled fullscreen mode via the video settings, I can't maximize the window anymore. If it still works for you then, that's strange.

migrated

Have you tried setting it to true starting it, closing it, and then setting it back to false? When i did it, the game was out of fullscreen but i could not maximize or resize the window so i closed the game, changed the option, saved and re-opened the game. I don't know why it would work for some and not others but it is a bug so idk.

violine1101

I tried it and the maximize button was still disabled. Did you actually read my comment?
Try to open Minecraft and then go to Options →‎ Video Settings and click on "Fullscreen" twice. Is your maximize button still enabled then?

migrated

Clicking the button disables it but then it is just a matter of restarting, my original comment was about using f11 to toggle which seems to work differently.

violine1101

As far as I know F11 and the setting does exactly the same. Anyway, you can try the same but use F11 instead of the setting, and it will disable the maximize button too.

migrated

I know it does, it is what my original comment is based on, and restarting the client did not fix that for me, so i had to go to the text file and change the option.

migrated

Now whenever i close minecraft and restart, it automatically goes into fullscreen. Now there is no way to get out of it!

i hate fullscreen

violine1101

@@unknown: To turn off fullscreen on startup, go to your .minecraft folder and open the "options.txt" file. Then change "fullscreen=true" to "fullscreen=false", close Minecraft and save the "options.txt" file. After that, Minecraft shouldn't start in fullscreen mode anymore.

migrated

thanks 🙂

migrated

The problem still exists in 1.8.4

migrated

Initial window size of freshly created Minecraft 1.8.2 in Launcher 1.6.11 : window is resizable and maximise tool icon works. Next three screenshots show window being resized, the fifth and last shows the window after fullscreen entered and exited: note maximise tool icon is disabled and user can no longer resize window. Minecraft 1.8.1 did not have this problem. Minecraft 1.8.4 still has this problem.

Note: Operating system is Windows 8 and java is 64bit installed by the launcher. Java -version output for this Minecraft 1.8.2 installation is:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

E:\progs\minecraft\mcexe\runtime>cd E:\progs\minecraft\mcexe\runtime\jre-x64\1.8
.0_25\bin

E:\progs\minecraft\mcexe\runtime\jre-x64\1.8.0_25\bin>java.exe -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

E:\progs\minecraft\mcexe\runtime\jre-x64\1.8.0_25\bin>

migrated

It's now version 1.8.5 and the problem is STILL present.
Environment-
i5 4690k
MSI GTX 970
8GB 2399MHz DDR3 RAM
Windows 7 SP1 64 bit
Java 1.8.0_45-b14 (Version 8 Update 45)

migrated

1.8.6 as well

migrated

it can probably be a laucher bug instead of a minecraft one
Try adding this line to your JVM Arguments on your profile's configuration:
-XX:-UseAdaptiveSizePolicy -Xmn128M

violine1101

@unknown, that doesn't work for me. I tried it with 1.8.6.

migrated

that worked me a while, but only a while...

migrated

Not working and sometimes when i go full screen my 2th screen goes black.

migrated

I'm pretty sure that you can resolve this issue by going to your settings and enabling and disabling fullscreen.

migrated

Problem is still present in 1.8.7

migrated

I'm having this issue in minecraft 1.8.7.

restarting the game usually doesn't imidiatly work and often I have to change profiles a couple of times before I can go in windowed fullscreen. (my brother always puts it on borderless fullscreen.)

migrated

Confirmed for 1.8.8

migrated

Confirmed for 15w31b too.

migrated

Confirmed for 15w31c too

migrated

Still exists in 1.8.8.

migrated

And when it is on fullscreen (fn f11) the 'exit','restore down' and 'minimise' do not show up. I'm on 1.8.8

migrated

Confirmed for 15w33b

migrated

dkarik, that is by design; the minimize, maximize, and exit buttons aren't supposed to be visible in fullscreen

migrated

Confirmed for 15w33c

migrated

Confirmed for 15w33c.

migrated

Confirmed for 15w34a

migrated

Confirmed for 15w34b, 15w34c and 15w34d.

I found a way to maximize for Windows users!
Ctrl+Shift+Esc -> Task menager -> Right click on Minecraft -> Maximize 😃

migrated

Confirmed for 15w35b

One of the longest running, extremely annoying bugs I've encountered.

migrated

Confirmed for 15w35c, 15w35d, and 15w35e

migrated

Confirmed 15w38b

violine1101

Confirmed for 15w39a.

migrated

Confirmed on 1.8.8 running Windows 10

migrated

1.8.8 windows 10 jre 1.8.0_25 (64bit) confirmed, regardless of means of entering full screen

violine1101

Confirmed for 15w41b.

migrated

Confirmed for 15w42a

migrated

Proof for 15w42a

Screenshot(https://i.imgur.com/b2SRdhj.jpg) Notice the maximize button greyed out.

migrated

still broken in 15w43c
windows 10 pro 64bit
java 1.8_065

BTW when you f11 to full screen from launching in a window also changes the options.txt file so next time it'll open in full screen. even if you change it back to playing in a window it doesn't re-write options.txt to reflect the change back to window mode

migrated

Confirmed for 15w44a and 15w44b. Very annoying bug.

migrated

Confirmed for 15w45a

migrated

Confirmed for 15w47a and 15w47c

migrated

I found a somewhat fix, by going into the launcher-> profile, you can enter in some random resolution and it will give you a screen that you can resize. It also will fix the start up on fullscreen mode error. It worked for me, hope this helps others!

migrated

You can quit the game, and change fullscreen setting in the options.txt file located in your .minecraft folder to false (type run into your windows search bar, type %appdata% into the popup, locate .minecraft, and find options.txt in there, usually twards the bottom for me.) Then relaunch Minecraft and you should be fine.

migrated

@@unknown You can also just change it via the Video Settings in the game.

migrated

Confirmed for 15w50a

migrated

Confirmed for 1.8.9

migrated

Problem still exists under 15w51b.
I have this bug since Windows 10...

migrated

It's not a Windows 10 Problem though...
I am running windows 7 and can confirm this...

migrated

Windows 8.1 user here. This affects me, too.

Also, take a look at the screenshots. They show the issue on Windows 7, 8/8.1, and 10.

migrated

This seems to have been resolved for me.

Jonah Simm

confirmed for 16w04a

migrated

I am having this problem on Windows 10. And I don't know if this is related or a separate issue, but the only reason I go use full screen is because the GUI remains small even when the window is maximized.

migrated

Confirmed for 16w05b

migrated

Confirmed for 16w06a. I have Windows 10

migrated

I don't know if this was said in the comments earlier, but you cannot drag the sides to resize it either. You also cannot pull it over to one side so that it fills half the screen.

Jonah Simm

confirmed for 1.9 pre-1

migrated

Confirmed for 1.9-pre2

migrated

I have reason to believe I have discovered the cause of this issue, and I have substantial proof to back it up:

When you open any window in Windows 10 the title bar has perfectly square buttons. However, if you maximize a non-universal (aka Win32) application, the title bar's proportions change and the buttons become wider than they are tall. I believe that when you take the game out of fullscreen the window thinks its maximized, even though it obviously is not. My proof is that when the window is in the bugged state the title bar is proportioned as if it is maximized. See the pictures I attached.

violine1101

I do not think that this is the problem since the bug is also present in Windows 7 and Windows 8. It seems like only apps which are maximizable use the more quadratic close/restore/minimize buttons - It's the way how Windows 10 displays 'Single' (non-sizeable) windows.

migrated

I wasn't saying it was a Windows 10-specific problem, I was just using that specific behavior of Windows 10 to prove that something makes it think it is maximized.

migrated

@@unknown I see what you mean, but @unknown is right. Non-resizable windows just always have the small buttons (I tested with other applications), so it's not some bug (and the window doesn't 'think' it's maximized).

migrated

Confirmed for Pre-Release 4.

Video showing this bug:
https://youtu.be/ANfvuxkLV58

insane96mcp

Confirmed on Official 1.9 Release. Idk why but that never happened to me before 1.9 ...

marcono1234

Please link to this comment in the description

The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta.

This might be a LWJGL bug as for whatever reason setting the display mode after you called the Display.create() method for the first time always disables resizing. Even if you try to destroy the display, set the display mode and then recreate it the window cannot be resized.

GoodKingFilms

Confirmed for 1.9.1-pre3. Can a mod please update the affected versions? Thanks.

insane96mcp

As for Minecraft 1.9 official release, if you install the mod Optifine, this problem doesn't occur

marcono1234

Do you know if the problem occurs without any mods but a Forge client?

migrated

I just tested it with Forge (not including OptiFine) 1.8.9, and maximizing the window isn't possible here either after exiting fullscreen.
Screenshot attached.

PS: Edit: Maximizing the window with a Forge-client after exiting fullscreen is not possible with loaded mods into the Forge client as well as without having any mods being active at all.
Even if you remove all mods from the mods folder, it shows 3 loaded mods by default though, Minecraft Coder Pack, Forge Mod Loader and Forge itself.

migrated

Just tested a MCPatcher-only-client (1.8), and exiting fullscreen lets you still maximize the window, the same as you can do it with an OptiFine-client.

Screenshot attached.

violine1101

Still in 1.9.1 and 1.9.2. Without using any mods. Mods aren't officially supported so it doesn't matter for this bug report whether there are mods which fix this bug.

migrated

(sorry if meta)
@unknown I assume those modded clients (e.g. Forge+MCPatcher) in which it does not occur do matter in that regard as it might help codereaders to figure out the MC Vanilla issue.

violine1101

Confirmed for Minecraft 1.RV-Pre1

migrated

That's not a "real" version. Check the date.

migrated

@unknown That's an april fool version LOL 😃

FaRo1

Confirmed for 1.9.3-pre1.
Also going INTO fullscreen changes the Windows 7 theme (visible with Alt+Tab). Could that be related? It doesn't change the selected theme in the system settings, but all the elements I made smaller are the normal size again and Aero is active again although I deactivated it.

violine1101

Still in 1.9.4

NeunEinser

Confirmed for 16w20a

FaRo1

I can confirm that this doesn't happen on Ubuntu 16.4 (MC 1.9.4), if that helps.

violine1101

Still in 16w21a and 16w21b

migrated

Why is this postponed? Shouldn't it be Reopened and assigned so it can be fixed sometime this year? This bug is very annoying and is persisting through the 1.10 snapshots.

migrated

Postponed means:
We see this as a bug, and it will be fixed, just not right now.

migrated

Still in Minecraft 1.10

migrated

Release 1.10 And its still here

migrated

I don't know what I did, but this hasn't been happening to me recently. Instead, when I make my window from full to small screen, it goes black.

migrated

Still in 1.10.1.

Restarting doesn't help.
http://gaming.stackexchange.com/a/232607 <-- this doesn't work
http://gaming.stackexchange.com/a/228489 <-- this doesn't work

EDIT:
http://gaming.stackexchange.com/a/232607 <-- It helped after second restart.
EDIT2:
But when I turned on, and off fullscreen, it is again.
EDIT3:
Now, when I changed fullscreen option in .minecraft/options.txt to false, and do this:
http://gaming.stackexchange.com/a/232607
I can turn on full size window, but when I turn on and off full screen I can' t do this

PL: Po tym jak zmieniłem opcję pełnego ekranu w .minectaft/options.txt na false, i usunąłem odpowiedni tekst z argumentów javy w edycji profilu w launcherze, to za każdym razem gdy wyłączę minecrafta wszystko działa dopóki nie włączę pełnego ekranu.

migrated

Confirmed for 1.10.2

2008Choco

Still in snapshot 16w39a, confirmed

migrated

Still in release 1.10.2 but one of the comments solved it for me.

violine1101 added a comment - 09/Apr/15 8:33 PM
@Sophia Gardener: To turn off fullscreen on startup, go to your .minecraft folder and open the "options.txt" file. Then change "fullscreen=true" to "fullscreen=false", close Minecraft and save the "options.txt" file. After that, Minecraft shouldn't start in fullscreen mode anymore.

Hope it works for you too, thank you violine1101

migrated

Confirmed for 1.11 full release

migrated

The way to fix this is to make the Display resizable after you set fullscreen.
{{
Display.setFullscreen(fullscreen);
Display.setResizable(false);
Display.setResizable(true);
}}
It needs to be set to false first because the implementation caches the last value and will not update the Window if it is already resizable in the cached state.

migrated

Confirmed for 1.11.2

migrated

I can confirm that this is a LWJGL bug though, the Windows backbend doesn't properly setup the window with the current state of the Display class. Hence why you need to make it not resizable to clear the window state in the backbend, this clears the cache and allows the backend to set the resizable flag on the window.

migrated

Still an issue in 1.12-pre1.

migrated

I checked the LWJGL patch that fixed this issue on there end. It appears that you would need to set the window to resizable after exiting full screen, at least on Windows hosts.

Source.

migrated

Can confirm for Minecraft 1.12-pre5

Bentroen

Confirmed for 1.12.
Very annoying bug 😞

DelimanCZ

Finally it's fixed!

migrated

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

pokechu22

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

migrated

(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