Ohh, and I suppose a Mod now migth say that I have included many bugs into one bug report, and that migth be true. I posted everything to give an as detailed as possible description.
I think this Issue should only be the issue that Minecraft closes the fullscreen rigth after it is made, and that someone(maybe me) should make issues for the turn around bug(AFAIk that exist already) and the wrongly redered/placed minecraft in the window.
a "jstack -l" log of the minecraft process after the screen is black with strange artifacts.
This is in an mcp environment, so it's deobfuscated after the mcp rules. The only changes is some System.out.println's for some fullscreen debugging.
I have been looking much into this bug, and the only thing I've found out is that this is either an OpenGL, graphics driver or LWJGL issue.
Even though this is not a Minecraft issue I will describe how it acts for me, so others can compare.
I have a dual-head setup, when I have the second monitor activated it never works, but here is what happens:
When I first set it to fullscreen, both monitors will go black, and then the secound monitor is disabled, and minecraft is back in it's windowed state(because of the check that closes fullscreen if minecraft is not in focus), but it is rendered wrongly in the window. It does not think of the window decaration, and therefor is of by as much as the window decaration is at the top, I'll take a screen shot of this and attach it to this bug report.
If I then try to go fullscreen again, the screen is all messed up, and is mostly black with a couple of strange graphical artifacts changing all the time. This is equal to how it's described in MC-3463. I did manage to use jstack to get a stack of minecraft when it is in this state, however. I will attach it to this bug report.
If I try running Minecraft after I have first disabled the other monitor the result is varying, but it tends to work if Minecraft have less than 1Gb of RAM.
However when minecraft then works in fullscreen it seems like the window is not correctely in focus, so when the cursor leaves the "real" window, Steve stops spinning around. This can be fixed by pressing Esc and then just press resume game with the cursor.
If it does not work when I have disabled the secound monitor the bug is like the issue author described it, and as shown in the video. This seems to be because of a check in the code that is supposed to go out of fullscreen if some other program take over the focus. A solution to this migth be to wait a second to see if minecraft is regaining it's focus.
So for a quick summarry: if the game tries to go to fullscreen and then closes, that is due to a check to prevent minecraft from being fullscreen while opening the Windows Start Menu for example. If you get strange artifacts on the screen, and you have to reboot/ attach another monitor and open another tty to restart the gdm, that is most likely an OpenGL or LWJGL issue. If minecraft is wrongly placed in the window after fullscreen(see screenshot) that is a minecraft issue, and is fixed by resizing the window. If you cannot turn while in fullscreen, or after it's closed, that is a LWJGL issue(probabely possible to fix through Minecraft though) and is fixed by opening the menu and closing it by using the "Resume" button.
EDIT: This proves that the fullscreen bug is actually many bugs. The original author of this issue did only have the problem that minecraft would go out of fullscreen again because of the check if the Minecraft window is active.
Crossposting the LWJGL forums thread and the Minecraft bug report
On my system this is working. I did an upgrade of the drivers, and I updated to Xorg 1.14. I can't say excately what fixed it but it's now working. As long as I disable the secound monitor first, anyways.