SDL 2.0.18 and newer (including SDL 3) set a fully transparent cursor object when hiding the cursor (instead of using a NULL cursor handle). Detect this case and treat it as a request to hide the cursor, to make our locking/relative-motion heuristics work.
---
Here is the SDL code: https://github.com/libsdl-org/SDL/blob/e20e27e1fbecf8c351b0cc2505567347a3b02... added in https://github.com/libsdl-org/SDL/commit/8fee82d1fd9d8875cca7f8bfc577c60d12a... to improve RDP support.