Setting the mouse cursor for a component that receives a drag

Apparently, there is still an issue setting the mouse cursor while dragging. This is caused by new behavior in MouseInputSourceInternal::setPointerState, which prevents setting the component under the mouse while dragging is underway. So, it is not possible to change the mouse cursor for a component that wants to accept a drag, which is very common to indicate the kind of drag.

After reading a bit more, I have now tried Desktop::getInstance().getMainMouseSource().showMouseCursor(MouseCursor::CopyingCursor);
but the cursor still does not change.