Fix exiting from full screen when exit on close enabled