dix: Fix up colormap fixup.
FindClientResourcesByType() will walk all colormaps on all screens; we only want to fix up the current screen. Otherwise, screens > 0 will have the visual pointers for their colormaps pointing off into space. Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
3785475a78
commit
15b30fde17
|
@ -2705,6 +2705,9 @@ static void _colormap_find_resource(pointer value, XID id,
|
||||||
ColormapPtr cmap = value;
|
ColormapPtr cmap = value;
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
|
if (pScreen != cmap->pScreen)
|
||||||
|
return;
|
||||||
|
|
||||||
j = cmap->pVisual - pScreen->visuals;
|
j = cmap->pVisual - pScreen->visuals;
|
||||||
cmap->pVisual = &visuals[j];
|
cmap->pVisual = &visuals[j];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue