From 3686bb4f9f514bcf5734c3b3951330c3b47333bb Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Mon, 25 May 2026 11:57:54 +0200 Subject: [PATCH] fix(totems): raise frame level so right-click reaches the totem strip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parent unit button registers AnyUp clicks and opens the unit popup via frame.menu — and was z-above the totem (which sat at frame level 1), so right-clicks fell through to the popup instead of dismissing the totem. Lift the totem to topFrameLevel + 5 so it wins the click. --- ShadowedUnitFrames/modules/totems.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ShadowedUnitFrames/modules/totems.lua b/ShadowedUnitFrames/modules/totems.lua index a1c7cb2..d2ab495 100644 --- a/ShadowedUnitFrames/modules/totems.lua +++ b/ShadowedUnitFrames/modules/totems.lua @@ -37,7 +37,9 @@ function Totems:OnEnable(frame) for id=1, MAX_TOTEMS do local totem = ShadowUF.Units:CreateBar(frame) - totem:SetFrameLevel(1) + -- Sit above the parent unit button (RegisterForClicks "AnyUp" + frame.menu) + -- so right-clicks land on the totem strip instead of opening the unit popup. + totem:SetFrameLevel((frame.topFrameLevel or 5) + 5) totem:SetMinMaxValues(0, 1) totem:SetValue(0) totem.id = MAX_TOTEMS == 1 and 1 or TOTEM_PRIORITIES[id]