git control: fixing window state