summaryrefslogtreecommitdiff
path: root/mi/mipointer.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-10-17 12:05:50 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-10-17 12:05:50 +0930
commit9aadde377991bfbd88524d02106bec3dedd6e7c9 (patch)
treeba14cbd13e00e511bd13397343d69585f2ff47a3 /mi/mipointer.c
parent8b7c4249d82d07e852d8d8c15c7ab9977dd1f31c (diff)
mi: don't call UndisplayCursor for non-sprite-owners.
Segfaults are bad.
Diffstat (limited to 'mi/mipointer.c')
-rw-r--r--mi/mipointer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mi/mipointer.c b/mi/mipointer.c
index 0db4d2c56..7a3257827 100644
--- a/mi/mipointer.c
+++ b/mi/mipointer.c
@@ -229,7 +229,8 @@ miPointerUndisplayCursor(pDev, pScreen)
ScreenPtr pScreen;
{
SetupScreen(pScreen);
- (*pScreenPriv->spriteFuncs->UndisplayCursor)(pDev, pScreen);
+ if (pDev->isMaster && pDev->spriteInfo->spriteOwner)
+ (*pScreenPriv->spriteFuncs->UndisplayCursor)(pDev, pScreen);
}
static void