Make fewer assumptions when centering windows.