patch window positioning