mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Keith Packard
parent
3785475a78
commit
15b30fde17
@@ -2705,6 +2705,9 @@ static void _colormap_find_resource(pointer value, XID id,
|
||||
ColormapPtr cmap = value;
|
||||
int j;
|
||||
|
||||
if (pScreen != cmap->pScreen)
|
||||
return;
|
||||
|
||||
j = cmap->pVisual - pScreen->visuals;
|
||||
cmap->pVisual = &visuals[j];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user