fix: Achievement hovering popups showing up even when they are covered by another window
This commit is contained in:
parent
48a1e93cfe
commit
929e0e64a5
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user