Added support to change the window origin