git-gui: Save geometry before the window layout is damaged