Commit ceaf4277 authored by Adam Jackson's avatar Adam Jackson

xfixes: Restore monitoring of animated cursors

This was broken by:

    commit aa6651f8
    Author: Adam Jackson <>
    Date:   Thu Jun 8 16:23:12 2017 -0400

        xfixes: Remove the CursorCurrent array

As of that change we look up the current cursor dynamically instead of
trying to track every time it's set through ->DisplayCursor. That would
work, except the 'bits' of an animated cursor is a transparent 1x1
pixel. So now, look up whether there's an animated cursor, and use its
current frame if so.
Signed-off-by: Adam Jackson's avatarAdam Jackson <>
parent 0b7a5700
......@@ -134,8 +134,11 @@ Bool EnableCursor = TRUE;
static CursorPtr
CursorForDevice(DeviceIntPtr pDev)
if (pDev && pDev->spriteInfo && pDev->spriteInfo->sprite)
if (pDev && pDev->spriteInfo && pDev->spriteInfo->sprite) {
if (pDev->spriteInfo->anim.pCursor)
return pDev->spriteInfo->anim.pCursor;
return pDev->spriteInfo->sprite->current;
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment