Saves previous window position and size.