diff --git a/crates/benilla-app/assets/ui/ChatFrame.xml b/crates/benilla-app/assets/ui/ChatFrame.xml index 1e59a4ec..171324f9 100644 --- a/crates/benilla-app/assets/ui/ChatFrame.xml +++ b/crates/benilla-app/assets/ui/ChatFrame.xml @@ -580,6 +580,13 @@ local frame = getglobal("ChatFrame" .. i) if i == id then frame:Show() else frame:Hide() end end + -- `SELECTED_CHAT_FRAME` tracks the SELECTION, which is what makes it different from + -- `DEFAULT_CHAT_FRAME` (the print target, seeded once and left alone). The reference + -- writes it from the tab's own OnClick before it even reaches FCF_SelectDockFrame + -- (`FloatingChatFrame.lua:1232`) and again on a drag (`FloatingChatFrame.xml:158`); + -- ours has one selection verb that every one of those paths goes through, so it is + -- written here rather than replicated at three call sites. + SELECTED_CHAT_FRAME = getglobal("ChatFrame" .. id) or SELECTED_CHAT_FRAME if BenillaFCF.flashTab == id then BenillaFCF.flashTab = 0 local flash = getglobal("ChatFrame" .. id .. "TabFlash") @@ -1185,22 +1192,31 @@ end ]]> - + - -