diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-06-04 16:09:34 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-06-22 08:09:38 -0700 |
commit | 77ae177fd77e90a6eaeebde9df88911256264329 (patch) | |
tree | d1b7d0c5d793ce581480fdfa26af077e32b43aaf | |
parent | 2503a68673c6012a0bf2abba58aa5060654965f9 (diff) |
Use new server API to find the root window.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r-- | src/dummy_driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dummy_driver.c b/src/dummy_driver.c index e32c1c7..804e41e 100644 --- a/src/dummy_driver.c +++ b/src/dummy_driver.c @@ -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); |