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.
Linked issues
Comments 23
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.
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.