mojira.dev
MC-40597

The interaction of Minecraft's built-in fullscreen mode and macOS fullscreen can glitch the game window

The bug

Since snapshot 13w47c, Minecraft has support for native fullscreen (using the green button in the title bar) on macOS; a later update also allowed control+command+F to toggle this. However, Minecraft's built-in fullscreen mode, accessible through video settings or by pressing the F11 key (possibly with fn or ctrl also held down; see also MC-268226), can be toggled independently of this. Toggling these two features in a certain order can lead to the Minecraft window being black, blurry, unresponsive, without a title bar, partially split into a separate "java" window, and/or otherwise glitched.

How to reproduce

  1. Launch the game. Disable Minecraft fullscreen if it is enabled.

  2. Activate native fullscreen.

  3. Activate Minecraft fullscreen. The Minecraft window switches to a desktop space and blocks out the other content, deactivating native fullscreen in the process; this is as expected.

  4. Reactivate native fullscreen using ⌘⌃F. Visually, nothing will happen.

  5. Deactivate Minecraft fullscreen. You may need to try this a few times. The screen may have visual glitches. (In some cases these can be fixed by switching to another application and back.)

  6. Play around a bit more. See if you can get the Minecraft window to a similar state as in the screenshots below. If you get a window which is partially black or blurry, activate Mission Control (F3); you can see that the black/blurry bit is a separate window called "java".

Linked issues

Attachments

Comments

Finn Wilke

Well, there shouldn't be two fullscreen modes because that would be just stupid. So either remove the F11 shortcut for the original fullscreen or make that toggle the OS X fullscreen. Anything else is totally confusing and buggy.

Erik Broes

Right now there is no way to 'set' the 'new' fullscreen mode. I'll ask LWJGL if they can add it, and if so, we can use that instead when pressing F11.

Ezekiel

And what about the fact that if you enter "minecraft" fullscreen while in native fullscreen then exit it, the window is incorrectly sized and shows the bar at the top.

Fenhl (Max Dominik Weber)

@unknown: have you heard back from LWJGL yet? If not, it might be better to just remove the F11 shortcut, as suggested by @unknown.

Ezekiel
Fenhl (Max Dominik Weber)

@@unknown: That repo seems to be abandonned. To fix this, Minecraft needs to update to LWJGL 3.

Ezekiel

Yes I know, that is mentioned in the ticket. I forgot to mention it here though.

Vladimir Rizov

Affects 1.12 Prerelease 5

wobst.michael

Can someone please check if this is still an issue in the latest snapshot 17w43b?

Ezekiel

Native fullscreen currently crashes Minecraft on macOS, so this is blocked, i think

Fenhl (Max Dominik Weber)

It is not native fullscreen but F11 fullscreen that crashes Minecraft.

Ezekiel

My mistake. To the same effect.

Fenhl (Max Dominik Weber)

Is there a ticket for the crash? I have not found one so far.

wobst.michael

So what's the status of this ticket with the recent snapshots now?

Fenhl (Max Dominik Weber)

I do not have access to macOS 10.13 “High Sierra”, but on 10.12 “Sierra” and 18w07c, this is now a crash bug:

  1. Activate native fullscreen.

  2. Activate F11 fullscreen.

  3. Switch to a different fullscreen app or desktop. This causes Minecraft to minimize into the Dock.

  4. Reactivate Minecraft by clicking the app icon in the Dock.

  5. Deactivate F11 fullscreen. Minecraft is now in a window within its fullscreen app slot. At this point, it is no longer possible to restore correct fullscreen functionality.

  6. Restore to windowed mode by dragging Minecraft down in Mission Control.

  7. Activate native fullscreen.

  8. Press F11. This causes Minecraft to crash.

bugmancx

There's some discussion here about forcing a crash however, this has not been tested on the latest snapshots as far as I know.

The issue of F11 and a maximized window is still a problem.

What is happening is that if you use the native window Maximize/Minimize button, Minecraft window will max/minimize but when you press F11, the game itself seems to maximize to full screen. This means if you have already maximized your window using the native buttons, then maximize the game again using F11, the game is "stranded" on a maximized window space. This can be seen if you F11 again to go back to windowed mode. You'll notice that your game returns to a window size, but stays in the same resolution and for some reason moves across to the right.

I will attempt to demonstrate in a video but the STR are:

 

  1. Launch game

  2. Press ctrl-fn-F11 (to return to windowed mode)

  3. Press the window's green Maximize button (notice Minecraft's window maximizes)

  4. Press ctrl-fn-F11 (to maximize Minecraft) (notice that the window flashes as if its gone fullscreen)

  5. Press ctrl-fn-F11 again to return the game to a window (notice now the game has gone back to windowed mode, but there's a black desktop space behind it and the existing resolution remained.)

To get out of this mess you need to use the green window button to return the whole application's back to windowed.

 

The above was tested in 1.13-pre5. Should this bug remain open or should I file a separate bug for it? @Mods?

kumasasa

Not necessary to make a separate ticket.

bugmancx

Affects 1.13-pre6

bugmancx

Affects 1.13-pre7

Also note that after step 4, Minecraft is back in windowed mode but the desktop is black, suggesting that it has become stuck inside a macOS ("Space")

 

bugmancx

Affects 1.13-pre10

bugmancx

Affects 1.13

bugmancx

Affects 1.13.2-pre1

bugmancx

Affects 18w43a

bugmancx

Affects 18w43b

bugmancx

Affects 19w05a

bugmancx

Affects 19w12a

Adrian Östergård

Is this still an issue in 1.14.4 or later?

Ezekiel

Yes, this is still an issue

zach

Affects 1.20.4

clamlol

I can't reproduce this in 24w05b on Sonoma 14.3. Do I need to do something in System Settings to get this to happen?

clamlol

Never mind, I forgot that the fullscreen toggle was ctrl+F11 and not just F11. That info should be added to the description here.

That being said, I'm not sure that there's much of an issue here. ctrl+F11 is just a shortcut to the Minecraft fullscreen mode, and the behavior of this mode seems entirely understandable to me. It could be argued that this mode should be removed from Minecraft Java Edition on macOS in favor of macOS fullscreen, but that would likely be a feature request. Additionally, ctrl+cmd+F does now work for toggling macOS fullscreen. If there's any bug here it's that you have to press ctrl for the fullscreen toggle even though the key binds screen just says F11; I may make a separate ticket for that.

Ezekiel

Actually, I think this issue has been resolved. I'm unable to make the game crash and while it's super glitchy while switching into Minecraft fullscreen it doesn't seem to cause any real problems.

When you said you reproduced it, what do you mean by "it"? Just going into the secondary fullscreen? I'm in 1.20.4

clamlol

Not sure I understand your comment but it seems like we agree that steps 1-4 of the description are WAI and steps 5-6 are no longer an issue, while the issue with ctrl is now covered by MC-268226. This being the case, a WAI here seems appropriate.

Ezekiel

I was experimenting a bit more and was able to reproduce the issue or a variant on it that can take over this ticket.

In some versions of the game I'm able to crash the game and in others I'm able to end up with a frameless window (no title bar with close/minimize/expand button).

If F11 works for you, use that. I used the Full Screen button in Video Settings to accomplish this:

  • command+control+F to enter native fullscreen

  • Full Screen button in Video Settings

  • command+control+F again

  • Full Screen button in Video Settings

At this point, my computer screen is mostly black/or blurry. I press command+control+F one more time and the game exits full screen but has no window controls (close, minimize, expand etc.). The window is sometimes larger than my screen and sometimes smaller.

In prior versions (1.19) this crashed the game.

clamlol

I see. I was also able to reproduce this and took a couple of screenshots using shift+cmd+4+space.

[media][media]
clamlol

Here's a final screenshot showing the window with the title bar gone. Also, requesting ownership since the current owner has been inactive since 2020.

[media]

Fenhl (Max Dominik Weber)

clamlol

(Unassigned)

Confirmed

Platform

Normal

UI

OSX, fullscreen, lwjgl, mac, macOS

Minecraft 13w47c, Minecraft 13w47d, Minecraft 13w47e, Minecraft 13w49a, Minecraft 14w08a, ..., 1.17.1, 1.20.4, 24w05b, 24w06a, 24w45a

Retrieved