Minecraft messes up the screen resolution in fullscreen

This happens every time when I put the game in fullscreen.
I'm playing on a laptop with a nvidia and an intel gpu. I'm currently using the intel gpu with the "video-hybrid-intel-nvidia-390xx-bumblebee" driver.

Forum kindly sponsored by