Added fullscreen flag handling