From cf1c4a0cb1596d01083b8040fb25157ed559db85 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 5 Sep 2023 16:47:00 +0200 Subject: [PATCH] BeginListBox(): fixed not consuming SetNextWindowXXX data when returning false. --- docs/CHANGELOG.txt | 2 ++ imgui_widgets.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index 1c0dded3..9bbdf182 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -44,6 +44,8 @@ Breaking changes: Other changes: +- BeginListBox(): fixed not consuming SetNextWindowXXX data when returning false. + ----------------------------------------------------------------------- VERSION 1.89.9 (Released 2023-09-04) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index ec3eca36..5a59ddb3 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -1,4 +1,4 @@ -// dear imgui, v1.89.9 +// dear imgui, v1.90 WIP // (widgets code) /* @@ -6630,6 +6630,7 @@ bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg) { ItemSize(bb.GetSize(), style.FramePadding.y); ItemAdd(bb, 0, &frame_bb); + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values return false; }