fix typo in ShieldPreDamaged
don't save WindowPosX/WindowPosY when window is maximized/minimized