diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index bd9568190..1389704b0 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -30,16 +30,6 @@ HOW TO UPDATE? and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users. - Please report any issue! ------------------------------------------------------------------------ - VERSION 1.89.7 WIP (In Progress) ------------------------------------------------------------------------ - -Other changes: - -- Tables: Fixed a regression in 1.89.6 leading to the first column of tables with either - ScrollX or ScrollY flags from being impossible to resize. (#6503) - - ----------------------------------------------------------------------- DOCKING+MULTI-VIEWPORT BRANCH (In Progress) ----------------------------------------------------------------------- @@ -107,6 +97,21 @@ Other changes: Note that Linux/Mac still have inconsistent support for multi-viewports. If you want to help see https://github.com/ocornut/imgui/issues/2117. +----------------------------------------------------------------------- + VERSION 1.89.7 WIP (In Progress) +----------------------------------------------------------------------- + +Other changes: + +- Tables: Fixed a regression in 1.89.6 leading to the first column of tables with either + ScrollX or ScrollY flags from being impossible to resize. (#6503) + +Docking+Viewports Branch: + +- Docking: Fixed dragging from title-bar empty space (regression from 1.88 related to + keeping ID alive when calling low-level ButtonBehavior() directly). (#5181, #2645) + + ----------------------------------------------------------------------- VERSION 1.89.6 (Released 2023-05-31) ----------------------------------------------------------------------- diff --git a/imgui.cpp b/imgui.cpp index dd155b036..90f72c263 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -16740,11 +16740,12 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w } // When clicking on the title bar outside of tabs, we still focus the selected tab for that node - // FIXME: TabItem use AllowItemOverlap so we manually perform a more specific test for now (hovered || held) + // FIXME: TabItems submitted earlier use AllowItemOverlap so we manually perform a more specific test for now (hovered || held) in order to not cover them. ImGuiID title_bar_id = host_window->GetID("#TITLEBAR"); if (g.HoveredId == 0 || g.HoveredId == title_bar_id || g.ActiveId == title_bar_id) { bool held; + KeepAliveID(title_bar_id); ButtonBehavior(title_bar_rect, title_bar_id, NULL, &held, ImGuiButtonFlags_AllowItemOverlap); if (g.HoveredId == title_bar_id) {