Save the main window geometry independently of the Python bindings.