View Single Post
10-20-10, 04:40 PM   #9
Zilver
A Fallenroot Satyr
 
Zilver's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 29
Originally Posted by zork View Post
You can fix it. Copy the complete menu from the Blizzard FrameXML and remove every focus entry. Dumb, but works.
If you don't have Raid Frames for your layout ...
Code:
do -- fix SET_FOCUS & CLEAR_FOCUS errors
    for k,v in pairs(UnitPopupMenus) do
        if k ~= "RAID" and k ~= "RAID_PLAYER" then
            for x,y in pairs(UnitPopupMenus[k]) do
                if y == "SET_FOCUS" then
                    table.remove(UnitPopupMenus[k],x)
                elseif y == "CLEAR_FOCUS" then
                    table.remove(UnitPopupMenus[k],x)
                end
            end
        end
    end
end
if you do have Raid Frames ...
Code:
do -- fix SET_FOCUS & CLEAR_FOCUS errors
    for k,v in pairs(UnitPopupMenus) do
        for x,y in pairs(UnitPopupMenus[k]) do
            if y == "SET_FOCUS" then
                table.remove(UnitPopupMenus[k],x)
            elseif y == "CLEAR_FOCUS" then
                table.remove(UnitPopupMenus[k],x)
            end
        end
    end
end
  Reply With Quote