save/restore window's geometry