From 3350a78cd8f84e986d580487d2886d053fe02bd6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 3 May 2020 13:23:26 +0200 Subject: [PATCH] Put work area in center docking node. --- server/TracyView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 36501313..186bcd97 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -679,9 +679,15 @@ bool View::DrawImpl() m_frameHover = -1; + const auto dockspaceId = ImGui::GetID( "tracyDockspace" ); + ImGui::DockSpace( dockspaceId, ImVec2( 0, 0 ) /*, ImGuiDockNodeFlags_NoDockingInCentralNode*/ ); + ImGui::SetNextWindowDockID( dockspaceId ); + ImGui::Begin( "Work area" ); + DrawFrames(); DrawZones(); + ImGui::End(); ImGui::End(); m_zoneHighlight = nullptr;