Reverted a modification to fullscreen handling, as it caused some crashes