Location written includes top-left corner of title bar. This is then read but the top-left corner of the viewport is placed. This has the symptom of the window slowly "marching" up the screen upon each game launch until the window meets the main system menu bar.
Reproduced on Macs only.