Skip to content

Commit

Permalink
Log/Capture: amend 772ca9e for docking.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Nov 6, 2024
1 parent 83660e3 commit d9f829d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8096,6 +8096,8 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
// Title bar
if (!(flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive)
RenderWindowTitleBarContents(window, ImRect(title_bar_rect.Min.x + window->WindowBorderSize, title_bar_rect.Min.y, title_bar_rect.Max.x - window->WindowBorderSize, title_bar_rect.Max.y), name, p_open);
else if (!(flags & ImGuiWindowFlags_NoTitleBar) && window->DockIsActive)
LogText("%.*s\n", (int)(FindRenderedTextEnd(window->Name) - window->Name), window->Name);

// Clear hit test shape every frame
window->HitTestHoleSize.x = window->HitTestHoleSize.y = 0;
Expand Down

0 comments on commit d9f829d

Please sign in to comment.