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
1 changed files with 4 additions and 0 deletions

View File

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