fixes center docking (#652)

This commit is contained in:
MelonSpeedruns 2022-07-11 18:13:01 -04:00 committed by GitHub
parent 6b50b50a6c
commit 0fd779f002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -723,7 +723,7 @@ namespace SohImGui {
ImGui::DockBuilderFinish(dockId);
}
ImGui::DockSpace(dockId, ImVec2(0.0f, 0.0f), ImGuiDockNodeFlags_None);
ImGui::DockSpace(dockId, ImVec2(0.0f, 0.0f), ImGuiDockNodeFlags_None | ImGuiDockNodeFlags_NoDockingInCentralNode);
if (ImGui::IsKeyPressed(TOGGLE_BTN)) {
bool menu_bar = CVar_GetS32("gOpenMenuBar", 0);