summaryrefslogtreecommitdiff
path: root/dix/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'dix/cursor.c')
-rw-r--r--dix/cursor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/dix/cursor.c b/dix/cursor.c
index fc81a5197..9e0724fb4 100644
--- a/dix/cursor.c
+++ b/dix/cursor.c
@@ -68,6 +68,10 @@ typedef struct _GlyphShare {
static GlyphSharePtr sharedGlyphs = (GlyphSharePtr)NULL;
+#ifdef XFIXES
+static CARD32 cursorSerial;
+#endif
+
static void
FreeCursorBits(CursorBitsPtr bits)
{
@@ -189,6 +193,10 @@ AllocCursorARGB(psrcbits, pmaskbits, argb, cm,
pCurs->bits = bits;
pCurs->refcnt = 1;
+#ifdef XFIXES
+ pCurs->serialNumber = ++cursorSerial;
+ pCurs->name = None;
+#endif
pCurs->foreRed = foreRed;
pCurs->foreGreen = foreGreen;
@@ -379,6 +387,10 @@ AllocGlyphCursor(source, sourceChar, mask, maskChar,
CheckForEmptyMask(bits);
pCurs->bits = bits;
pCurs->refcnt = 1;
+#ifdef XFIXES
+ pCurs->serialNumber = ++cursorSerial;
+ pCurs->name = None;
+#endif
pCurs->foreRed = foreRed;
pCurs->foreGreen = foreGreen;