Hi!
If I get the position of window with window.getPosition() method, I received a different value that sometimes changes it;
window.create(sf::VideoMode(windowSize.x, windowSize.y, colordepth), windowTitle, (fullscreen ? sf::Style::Fullscreen : sf::Style::Resize|sf::Style::Close));
window.setPosition(sf::Vector2i(50,50));
std::cout<<window.getPosition().x<<std::endl; // return sometimes 10, other 640
handle = window.getSystemHandle();
window.setFramerateLimit(framerate);
No, there is no delay to change the values.
Just to make sure that you understood me, I meant this:
window.setPosition(sf::Vector2i(50,50));
sf::sleep(sf::seconds(1));
std::cout<<window.getPosition().x<<std::endl;