Hello Omar!
Is there any function to move window center in the middle of the window? I want to place my window at the center of my screen but window moves from center if it trying to be bigger.
You can use
SetNextWindowPos(ImVec2(io.DisplaySize.x * 0.5f, io.DisplaySize.y * 0.5f), ImGuiCond_Always, ImVec2(0.5f,0.5f))
Most helpful comment
You can use
SetNextWindowPos(ImVec2(io.DisplaySize.x * 0.5f, io.DisplaySize.y * 0.5f), ImGuiCond_Always, ImVec2(0.5f,0.5f))