Fix 1694393: save 'pref.*' keys first, so the window manager hint preference is loade...