summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-06-09 11:45:57 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-06-11 17:24:19 +0930
commit6ab311c92d036dc63ee92ab4bb231f5f61ebe69f (patch)
treef515f7714254777328702495d2377cb89afb366e
parente083b5a07507d53de0d1d365ef1565346284c997 (diff)
dix: Call RealizeCursor during InitializeSprite.
RealizeCursor should be called when the cursor is allocated. However, when the root cursor is allocated, no devices exist yet, and thus RealizeCursor is never called. This may lead to segfaults lateron in DDXes like Xnest that actually need to do something for each cursor, and lateron rely on that DDX-specific data for each cursor has been initialized.
-rw-r--r--dix/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dix/events.c b/dix/events.c
index 79d937331..81919737a 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -2950,6 +2950,7 @@ InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
if (pScreen)
{
+ (*pScreen->RealizeCursor) ( pDev, pScreen, pSprite->current);
(*pScreen->CursorLimits) ( pDev, pScreen, pSprite->current,
&pSprite->hotLimits, &pSprite->physLimits);
pSprite->confined = FALSE;