mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-23 21:09:01 +08:00
Log/Capture: amend 772ca9e
for docking.
This commit is contained in:
parent
83660e37e3
commit
d9f829dd71
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user