Added fullscreen detection