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.
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.