change auto-fullscreen logic