Save window size in prefs.