Use new server API to find the root window.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
Jamey Sharp 2010-06-04 16:09:34 -07:00
parent 2503a68673
commit 77ae177fd7

View File

@ -779,7 +779,11 @@ DUMMYCreateWindow(WindowPtr pWin)
return(ret); return(ret);
if(dPtr->prop == FALSE) { if(dPtr->prop == FALSE) {
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 8
pWinRoot = WindowTable[DUMMYScrn->pScreen->myNum]; pWinRoot = WindowTable[DUMMYScrn->pScreen->myNum];
#else
pWinRoot = DUMMYScrn->pScreen->root;
#endif
if (! ValidAtom(VFB_PROP)) if (! ValidAtom(VFB_PROP))
VFB_PROP = MakeAtom(VFB_PROP_NAME, strlen(VFB_PROP_NAME), 1); VFB_PROP = MakeAtom(VFB_PROP_NAME, strlen(VFB_PROP_NAME), 1);