fix window position to viewport centre