Fix centering windows for multi-monitor configurations on Linux