Positions were saved when window was maximized

If the window is maximized, the X Y positions are (sometimes) negative.