Total-RP / Total-RP-3-Extended

Extended module for the Total RP 3 add-on for World of Warcraft, adding creation tools.
http://extended.totalrp.com
11 stars 12 forks source link

Remove GetMouseFocus calls #242

Closed Meorawr closed 1 month ago

Meorawr commented 2 months ago

This API is being removed in 11.0.0, with its replacement being a bit more of a pain to use as it can return potentially multiple frames. For trivial "is this frame the current mouse focus" tests, the Frame:IsMouseMotionFocus() method is suitable and was added back in 10.1.0, so can be safely used everywhere.

Note - there's one leftover call to GetMouseFocus that needs dealing with, but this requires some more thought; until then this is just a draft.

Meorawr commented 2 months ago

Isn't backward compatible with live, so no mergey until 11.0.