store main window rectangle on resize too