Setting a custom hardware cursor does not work unless the mouse cursor re-enters the active game window

I can confim this is still happening in 4.18.3, probably in 4.19 too.