Check if mouse is over the window before acting on mouse click.

This commit is contained in:
Bartosz Taudul
2026-01-08 20:50:26 +01:00
parent 825ab7f411
commit c1ffbe8e0d

View File

@@ -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
{