Change immersive mode code so that it'll only occur when user wants to have fullscreen