windowmap to patchwindowmap