From 3f217809800d341b2a20cd1d1ae293d8462e0e00 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 21 Apr 2024 15:00:39 +0200 Subject: [PATCH] libtipscan: make sure the owner is set each call For some reason, early initialized tooltips without a WDB cache, won't get attached properly. It seems like they lose their owner when the WDB cache gets ready. Running :SetOwner() again later when caches are ready fixes that somehow. --- libs/libtipscan.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/libtipscan.lua b/libs/libtipscan.lua index 86675c01..b42947f8 100644 --- a/libs/libtipscan.lua +++ b/libs/libtipscan.lua @@ -167,6 +167,7 @@ libtipscan._registry = setmetatable({},{__index = function(t,k) local old = v[method] v[method] = function(v, a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) v:ClearLines() + v:SetOwner(WorldFrame, "ANCHOR_NONE") return old(v, a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) end end