Fix exiting fullscreen leaving an invisible window