From 891dd2d31e48f8585390fa84a4bc54cda883576f Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 12 Nov 2025 18:22:05 +0100 Subject: [PATCH] Docking, Style: fixed per-window ImGuiCol_UnsavedMarker changes not being latched by docked windows. (#8983, #9064) --- docs/CHANGELOG.txt | 2 ++ imgui.cpp | 2 +- imgui_internal.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index af7fbfcb0..c59dc29c5 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -150,6 +150,8 @@ Other Changes: Docking+Viewports Branch: +- Docking, Style: fixed per-window ImGuiCol_UnsavedMarker changes not being latched + by docked windows. (#8983, #9064) - Examples: - SDL2+DX11, SDL3+DX11, Win32+DX10, Win32+DX11: fixed one resource leak from the use of MakeWindowAssociation() in 1.92.4. (#9010, #4350) [@o-3-o] diff --git a/imgui.cpp b/imgui.cpp index 397697334..666c9d6aa 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3601,7 +3601,7 @@ void ImGui::PopStyleColor(int count) static const ImGuiCol GWindowDockStyleColors[ImGuiWindowDockStyleCol_COUNT] = { - ImGuiCol_Text, ImGuiCol_TabHovered, ImGuiCol_Tab, ImGuiCol_TabSelected, ImGuiCol_TabSelectedOverline, ImGuiCol_TabDimmed, ImGuiCol_TabDimmedSelected, ImGuiCol_TabDimmedSelectedOverline, + ImGuiCol_Text, ImGuiCol_TabHovered, ImGuiCol_Tab, ImGuiCol_TabSelected, ImGuiCol_TabSelectedOverline, ImGuiCol_TabDimmed, ImGuiCol_TabDimmedSelected, ImGuiCol_TabDimmedSelectedOverline, ImGuiCol_UnsavedMarker, }; static const ImGuiStyleVarInfo GStyleVarsInfo[] = diff --git a/imgui_internal.h b/imgui_internal.h index 89813db34..e0cd8f612 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -2090,6 +2090,7 @@ enum ImGuiWindowDockStyleCol ImGuiWindowDockStyleCol_TabDimmed, ImGuiWindowDockStyleCol_TabDimmedSelected, ImGuiWindowDockStyleCol_TabDimmedSelectedOverline, + ImGuiWindowDockStyleCol_UnsavedMarker, ImGuiWindowDockStyleCol_COUNT };