Basic config mechanism to save the window position