From 9c121ae45ae1d2ebd892c45e1631716ef5e7d649 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 5 Jun 2010 21:34:27 -0700 Subject: [PATCH] Register Xnest colormap screen private key This key is used to store the currently installed colormap and must be registered before we can use it. Reviewed-by: Jamey Sharp Signed-off-by: Keith Packard --- hw/xnest/Color.c | 3 +++ 1 file changed, 3 insertions(+) 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++);