From 6ab311c92d036dc63ee92ab4bb231f5f61ebe69f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 9 Jun 2008 11:45:57 +0930 Subject: [PATCH] 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. --- dix/events.c | 1 + 1 file changed, 1 insertion(+) 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;