Use new server API to find the root window.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
parent
2503a68673
commit
77ae177fd7
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user