With 9.2.5, UnitPopupMenus[menu] is no longer a list of buttons.
It contains an object of Button class derived from UnitPopupTopLevelMenuMixin, and buttons are returned by override function GetMenuButtons.
This fix creates a copy of the original menu but removes SET_FOCUS, CLEAR_FOCUS, PVP_REPORT_AFK buttons in the GetMenuButtons override.
Verified no more lua errors pop up when right clicking the raid frames
With 9.2.5, UnitPopupMenus[menu] is no longer a list of buttons. It contains an object of Button class derived from UnitPopupTopLevelMenuMixin, and buttons are returned by override function GetMenuButtons.
This fix creates a copy of the original menu but removes SET_FOCUS, CLEAR_FOCUS, PVP_REPORT_AFK buttons in the GetMenuButtons override.
Verified no more lua errors pop up when right clicking the raid frames