Fix Window::pivot
causing windows to move around
#2694
Merged
Window::pivot
causing windows to move around
#2694