now save the geometry of the window