diff options
-rw-r--r-- | src/driver.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/driver.c b/src/driver.c index eb4c208..e882ccf 100644 --- a/src/driver.c +++ b/src/driver.c @@ -634,8 +634,13 @@ NestedCreateScreenResources(ScreenPtr pScreen) { ret = pScreen->CreateScreenResources(pScreen); pScreen->CreateScreenResources = NestedCreateScreenResources; - shadowAdd(pScreen, pScreen->GetScreenPixmap(pScreen), pNested->update, - /*pNested->window*/ 0, 0, 0); + if(!shadowAdd(pScreen, pScreen->GetScreenPixmap(pScreen), + pNested->update, NULL, 0, 0)) { + xf86DrvMsg(pScreen->myNum, X_ERROR, "NestedCreateScreenResources failed to shadowAdd.\n"); + return FALSE; + } + + return ret; } static void |