patch where window selection