Instead of warping in a small region, a hidden cursor grab now warps on the spot.
This is an alternative X11 fix to rB9fd6dae7939a: Fix T102346: Mouse escapes window during walk navigation.
This needs further testing, there is a problem with this method where an event queue may accumulate and apply multiple delta's before the cursor is reset to the center point.
It may be possible to resolve this using timers, although there doesn't seem to be a straightforward way to access time compatible with the X11 events Time. (the only method I found is fairly involved see: https://stackoverflow.com/a/67986496/432509).
Creating this diff for reference as I think this method is preferable if detecting cursor reset can be done reliably.