Make window-to-win and restore keep track or window-parameters