From ea588072f21cd430af1fb9ccafaca6e44305cbef Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 4 Aug 2018 14:50:31 +0200 Subject: [PATCH] Stop connection window from jumping around. --- server/TracyView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 65b9f365..ef4b0319 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -468,7 +468,9 @@ void View::DrawConnection() { std::lock_guard lock( m_worker.GetMbpsDataLock() ); - ImGui::Begin( m_worker.GetAddr().c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize ); + char tmp[2048]; + sprintf( tmp, "%s###Connection", m_worker.GetAddr().c_str() ); + ImGui::Begin( tmp, nullptr, ImGuiWindowFlags_AlwaysAutoResize ); const auto& mbpsVector = m_worker.GetMbpsData(); const auto mbps = mbpsVector.back(); char buf[64];