Godot Version
v4.5.stable.official [876b29033]
Problem
We’re creating and updating an override.cfg file whenever the user changes our game’s window resolution. We do this so the game launches immediately to the user’s preferred resolution.
[display]
window/size/window_width_override=2560.0
window/size/window_height_override=1440.0
We have set the initial_position_type to Center of Primary Screen.
However, when running the game from the editor, the window is not properly centered. It’s top left corner is at the same place as it would be when centering the window without the override.
Now I’m also hesitant on the whole override.cfg as it’s pretty ugly to have a separate file in the game’s folder. But as far as I know, it’s the only way to launch the game with desired settings. MacOS doesn’t even seem to respect the window/size/mode used to set the initial window mode to windowed or full screen.