Win-specific: Refactor of main window geometry saving