Skip to content
Discussion options

You must be logged in to vote

I am not sure but maybe you can just do something like

window.set_size({800, 600}) // if you want it to have constant size, just change to its actual size
CenterPosition(window);
window.show();

Or

window.show();
std::thread(&window {
std::this_thread::sleep_for(std::chrono::milliseconds(50)); // Just waiting the window to be opened
CenterPosition(window); // then only center it
}).detach();

Ping me if you need any help

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Evicia
Comment options

@Abrahamiaan
Comment options

Answer selected by Evicia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants