createbranch: save and restore window settings