Save window position in configuration file