Added window geometry setting