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 {