diff --git a/hw/xnest/Color.c b/hw/xnest/Color.c index 6399e3470..3b60cc95d 100644 --- a/hw/xnest/Color.c +++ b/hw/xnest/Color.c @@ -469,6 +469,9 @@ xnestCreateDefaultColormap(ScreenPtr pScreen) unsigned short zero = 0, ones = 0xFFFF; Pixel wp, bp; + if (!dixRegisterPrivateKey(&cmapScrPrivateKeyRec, PRIVATE_SCREEN, 0)) + return FALSE; + for (pVisual = pScreen->visuals; pVisual->vid != pScreen->rootVisual; pVisual++);