Delay as much as possible setting window properties