git-gui: store wm state and fix wm geometry