From 3f609310e24e1baadd7092b6dac38001bf762234 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sat, 15 Apr 2023 00:24:24 +0200 Subject: [PATCH] Properly enabled docking for the application. --- src/main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index a3f753e..1834cb0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -531,7 +531,8 @@ int main() { ImGui::CreateContext(); ImGui::StyleColorsDark(); ImGuiIO& io = ImGui::GetIO(); - io.IniFilename = nullptr; + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; + io.IniFilename = "ATPImgui.ini"; io.Fonts->AddFontDefault(); io.KeyMap[ImGuiKey_Tab] = GLFW_KEY_TAB; io.KeyMap[ImGuiKey_LeftArrow] = GLFW_KEY_LEFT; @@ -733,6 +734,8 @@ int main() { camera_accel); } + ImGui::DockSpaceOverViewport(ImGui::GetMainViewport()); + if (ImGui::BeginMainMenuBar()) { if (ImGui::BeginMenu("File")) { if (ImGui::MenuItem("Quit")) {