From c1ffbe8e0d0f308a9b5fe35948d38ddc2817a33a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 8 Jan 2026 20:50:26 +0100 Subject: [PATCH] Check if mouse is over the window before acting on mouse click. --- profiler/src/profiler/TracyLlmChat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyLlmChat.cpp b/profiler/src/profiler/TracyLlmChat.cpp index 8cb2556c..71063ab3 100644 --- a/profiler/src/profiler/TracyLlmChat.cpp +++ b/profiler/src/profiler/TracyLlmChat.cpp @@ -141,7 +141,7 @@ bool TracyLlmChat::Turn( TurnRole role, const nlohmann::json& json, Think think, { const auto& trash = roles[trashIdx]; ImGui::TextColored( trash.iconColor, "%s", trash.icon ); - if( IsMouseClicked( ImGuiMouseButton_Left ) ) keep = false; + if( IsMouseClicked( ImGuiMouseButton_Left ) && ImGui::IsWindowHovered() ) keep = false; } else {