Correctly grabbing x,y of window.