Saves and restores positions of windows