There is a serious problem with this fix on Ubuntu 14.04 using the default Unity compositor.
When I am running Minecraft in fullscreen and I press my volume up-down / mute or PrtScrn (not the Minecraft F2 screenshot key), Minecraft will leave fullscreen mode and minimize to the launcher icon to show the Notify OSD message box or screenshot dialogue.
All I can see is my Ubuntu desktop, it is now impossible to return to Minecraft when I try to alt-tab or click on the launcher icon. Minecraft is still running in the background (I can hear the music), but the only option is to quit, or sometimes when playing in a minecraft world I have to kill the process.
Previous versions pre 14w34d, would leave fullscreen, enter windowed mode, show the notification or dialogue, then I can press F11 to return to fullscreen mode.
Would be better if when the volume / mute keys did not exit fullscreen mode, and show the OSD notification as normal. The PrtScn button for screenshots would cause minecraft to enter windowed mode, show the screenshot dialogue, then allow me to select minecraft and F11 to return to fullscreen.
Note:
I reported this in
Minecraft / MC-55045 - Race condition in linux fullscreen toggle.
But I guess that that issue is resolved, and this issue has been ignored.
Related issues
Comments


I have the same problem when pressing mute. Minecraft 1.8 exits fullscreen.
But I can Alt-Tab back every time. Still annoying..
Radeonsi Mesa 10.1.5-1.20140607.fc20
Gnome Version 3.10.2
OpenJDK 1.7.0.65
Fedora 20 x64

I have the exact same problem on Ubuntu 14.04 and Minecraft 1.8. I use Unity 3D (not 2D, meaning I use Compiz). I accidentally press the Super (Windows) key during gameplay, and then I can't see Minecraft anymore. It is clearly still running,but there is not a way to get back to it. I just usually do Ctrl+Alt+F1 to get to the terminal and type killall java. It is very annoying. Perhaps this is a bug in Compiz or your JRE (Java Runtime Environment). I see you use Java 7 Update 65 (there is no such thing as Java 1.7.0.65 so please change it!), but what JRE do you use? OpenJDK or Oracle? This is likely a bug in our JREs or in Compiz. I use OpenJDK and that's probably what you are using. We can only wait for a JRE update or Compiz update. Until then, get into a habit of typing the command sudo apt-get update && sudo apt-get dist-upgrade -y a lot to get potential updates!

Updated with OpenJDK, I just copied the info from the Minecraft snooper settings page.
I update my system daily.
If I revert to Minecraft 1.7.10 I can press the media keys, Start button, etc and Minecraft will just go into windowed mode, pressing F11 will allow me to continue normally. I'm fairly sure that this bug is due to a fix made to issue MC-55045, not to OpenJDK, Unity / Compiz. Plus Windows 7 is seems to be affected too now.

Interesting. Considering that this bug affects Windows and Ubuntu users, I would think this would be the developer's first priority. Also, according to that bug report and https://bugs.mojang.com/browse/MC-70651, there are all sorts of problems with Minecraft on Linux-based operating systems. I would think this would be the developer's first priority (perhaps they're working on it right now?) because, just taking your word for it, also affects Windows and probably happens on all operating systems. I've yet to test Apple Mac OS X, but when I do I will let you know.

Same problem here: Cinnamon on Linux Mint 17 (Rebecca), same Java-version. Whenever I start Minecraft in 1.8.1 and press Alt+Tab, Ctrl+Alt+[ArrowKey], try to regulate my volume via the keys or pause audio playback, Minecraft vanishes and the following stop to work: Alt+Tab, Expo & Scale (Window and virtual desktop overwiews), mouseclicks (I can still move the cursor around, its just utterly useless).
(Also, possibly related, on the first two tries with 1.8.1 the game didn't start at all.)

I have the same problem. Running Ubuntu 14.04 with Compiz. Java version: 1.8.0_25. When I press any media key while in fullscreen in Minecraft 1.8.1, it exits fullscreen and vanishes. Mouseclicks don't work and i have to do Ctrl+Alt+F1 and kill the java process. If I exit fullscreen first, I can use the media buttons, but it's annoying to do that every time I want to adjust the volume.

Same issue here. Ubuntu 14.04, Minecraft 1.8.1 w/ Optifine 1.8.1,
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
Alt-tab or any other of these buttons takes me out of minecraft, after which I cannot reenter. The problem does not occur if I am out of fullscreen when these keys are pressed.

Please fix this problem, while in full-screen if I hit the start button (super) cannot recover minecraft, mouse and Unity menu is the only one to respond when typing but when trying to click on any launcher or sub-menu there is no respond...
Ubuntu 14.04.2
OpenJava 7

Same problem here. Ubuntu 14.4.

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

Game still minimizes in 1.10.2, but can be recorvered with Alt+Tab. (At least on my new machine, after all it's been over two years without anything happening on this bug.)

Problem still occurs in Minecraft v 1.11.2
I'm on Linux Mint 18.1 Cinnamon 64-bit, vers. 3.2.7, Linux kernel 4.4.0-59-generic
Tabs me out of the game if I use the media function keys when playing music from any program.


Same problem on 14.04 - Gnome Shell, also when closing laptop and reopening (sleep not activated). I have to killall java.

Same problem, I am using Manjaro Deepin and Oracle Java. When alt-tabbing a couple of things happen:
Mouse input keeps going to minecraft only; I cannot click anything.
I cannot alt-tab back into minecraft, and when I try the alt-tab menu stays on screen.
Keyboard input does go into the window on screen.
The thing I've been doing to get out of this weird behaviour is the following:
While stuck in the alt-tab screen, I look at the minecraft miniature and navigate with my mouse to the graphics options, where I disable fullscreen. After this I can alt-tab to another window, select minecraft, hit f11 and resume playing
Using the same technique, hitting quit game in the main menu, and restarting minecraft.

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

Still confirmed up to 18w05a

Is this still a issue in the latest version of the game(currently 1.13.1)?
If so, please add it to the affected versions, thanks!

No, 1.13 and up isn't affected. 1.12.2 is. Strangely enough, I can alt tab back to minecraft, not sure why you guys can't. JDK 8u202 JRE 8u202 (not openJDK). Ubuntu 18.10 non-LTS.

I'm going to assume that this was fixed with the update to LWJGL 3, then (17w43a). Perhaps the discrepancy on whether or not alt+tab worked was differences between distros and how they handle media keys; some other users said they could and others say they couldn't.

... wait, no, someone said 18w05a was affected. OK, that's confusing. Can you test 18w05a or 17w43a and see if it happens for you there? It might be fixed on some distros and not on others which would be confusing but possible given the other variance...

Oh hey, it's me again. I found this with google lol.
So on distros with KDE Plasma installed I have a similar ish problem that I believe is related to this, and it was solved on gnome in later versions, 1.14.4 iirc.
If you're in fullscreen and have 2 monitors, the window minimises when you focus another window. No other fullscreen app does this.
A temporary solution is to add a kwin window rule that forces the application to not minimise.
Ubuntu 18.04 KDE Neon 5.16
Well, I have this sometimes too. But it's in Windows 7 SP-1.