From 19482214f1f03b87dac6d404d62b1bacf3f83888 Mon Sep 17 00:00:00 2001 From: DanS Date: Fri, 3 Jul 2026 18:52:06 -0500 Subject: [PATCH] fix(market): draw the portfolio overlay above the tab content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop ImGuiWindowFlags_NoBringToFrontOnFocus on the overlay window — it stopped the per-frame SetNextWindowFocus() from raising the modal, so it rendered behind the market chart/cards. Now matches the proven BeginOverlayDialog behavior. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/ui/windows/market_tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/windows/market_tab.cpp b/src/ui/windows/market_tab.cpp index 878b679..77939a0 100644 --- a/src/ui/windows/market_tab.cpp +++ b/src/ui/windows/market_tab.cpp @@ -408,7 +408,7 @@ static void RenderPortfolioEditor(App* app) ImGui::Begin("##PortfolioOverlay", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | - ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoBringToFrontOnFocus); + ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoSavedSettings); ImDrawList* dl = ImGui::GetWindowDrawList(); material::DrawFullWindowBlurBackdrop(dl, vpPos, ImVec2(vpPos.x + vpSize.x, vpPos.y + vpSize.y)); ImGui::SetCursorScreenPos(vpPos);