In order to reset the SW cursor, we need to call xf86CursorSetCursor. However, the parameters we need to call SetCursor with are not exposed we need to be a little tricky and call a pair of functions that will save and then restore the cursor.
e617c19 sna: Force restoration of SW cursor after HW cursor fails
src/sna/sna.h | 3 ++-
src/sna/sna_display.c | 38 +++++++++++++++++++++++++++++++++++++-
2 files changed, 39 insertions(+), 2 deletions(-)
Upstream: cgit.freedesktop.org