Only center window when its size changes or returning from fullscreen.