Merge "Consider multi-window envs to calc the center of display"