window: update setting when the view changes

Note: Eventually I ended reverting the changes I have made here a few
commits back.