diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-10-17 12:05:50 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-10-17 12:05:50 +0930 |
commit | 9aadde377991bfbd88524d02106bec3dedd6e7c9 (patch) | |
tree | ba14cbd13e00e511bd13397343d69585f2ff47a3 /mi/mipointer.c | |
parent | 8b7c4249d82d07e852d8d8c15c7ab9977dd1f31c (diff) |
mi: don't call UndisplayCursor for non-sprite-owners.
Segfaults are bad.
Diffstat (limited to 'mi/mipointer.c')
-rw-r--r-- | mi/mipointer.c | 3 |
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 |