From 66cfbbff5e0ae04f7a182678e09692a18adafe6f Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 26 Nov 2018 17:39:38 +0100 Subject: [PATCH] Docking: Fixed double-overlay when dragging window over one of the (four cardinal) outer drop boxes. (#2109) --- imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 4febd9a5..521a0fe8 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -12354,6 +12354,8 @@ void ImGui::BeginAsDockableDragDropTarget(ImGuiWindow* window) if (DockNodePreviewDockCalc(window, root_node, payload_window, &split_outer, is_explicit_target, true)) split_data = &split_outer; DockNodePreviewDockCalc(window, target_node, payload_window, &split_inner, is_explicit_target, false); + if (split_data == &split_outer) + split_inner.IsDropAllowed = false; // Draw inner then outer, so that previewed tab (in inner data) will be behind the outer drop boxes DockNodePreviewDockRender(window, target_node, payload_window, &split_inner);