window.create(sf::VideoMode(800, 640, 1), title.c_str(), sf::Style::Titlebar | sf::Style::Close);
window.setFramerateLimit(60);
window.setPosition(sf::Vector2i(sf::VideoMode::getDesktopMode().width / 2 - 400,
sf::VideoMode::getDesktopMode().height / 2 - 320));
That's the code with the which I create my window. The window opens on (0, 0) and then jumps to the center of the screen.
Is there a way to make it open on the center right at the start? I don't really like the window "bouncing" position.
Thanks.