1
0
mirror of synced 2024-11-28 17:40:51 +01:00

fix: Achievement hovering popups showing up even when they are covered by another window

This commit is contained in:
WerWolv 2023-10-12 20:24:02 +02:00
parent 48a1e93cfe
commit 929e0e64a5

View File

@ -91,7 +91,7 @@ namespace hex::plugin::builtin {
auto tooltipSize = achievementSize * ImVec2(4, 0);
// Draw achievement tooltip when hovering over it
if (ImGui::IsMouseHoveringRect(position, position + achievementSize)) {
if (ImGui::IsWindowHovered() && ImGui::IsMouseHoveringRect(position, position + achievementSize)) {
ImGui::SetNextWindowPos(tooltipPos);
ImGui::SetNextWindowSize(tooltipSize);
if (ImGui::BeginTooltip()) {