mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-14 14:30:32 +01:00
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 <jamey@minilop.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
df534d0520
commit
9c121ae45a
1 changed files with 3 additions and 0 deletions
|
|
@ -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++);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue