Fixed window centering for mac