Fix Window::xy2Pos() calculation that was making selection weird.