If I play Minecraft and then want to watch YouTube and then switch over to Safari, Minecraft is minimized. And then I have to click on Java again below so I could play again. I do not know why.
This is normal, switch from full screen to borderless in the settings and the problem should be gone.
Thanks, it works now