mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
dix: AllocColor() dont fire Xace hook when looking up color at root window
This is creating false alarms that are complicated to catch, thus passing NULL client so the Xace hook in dixLookupResourceByType() doesn't fire here. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -1025,7 +1025,7 @@ AllocColor(ColormapPtr pmap,
|
||||
|
||||
dixLookupResourceByType((void **) &prootmap,
|
||||
pmap->pScreen->defColormap, X11_RESTYPE_COLORMAP,
|
||||
clients[client], DixReadAccess);
|
||||
NULL, DixReadAccess);
|
||||
|
||||
if (pmap->class == prootmap->class)
|
||||
FindColorInRootCmap(prootmap, prootmap->red, entries, &rgb,
|
||||
@@ -1043,7 +1043,7 @@ AllocColor(ColormapPtr pmap,
|
||||
|
||||
dixLookupResourceByType((void **) &prootmap,
|
||||
pmap->pScreen->defColormap, X11_RESTYPE_COLORMAP,
|
||||
clients[client], DixReadAccess);
|
||||
NULL, DixReadAccess);
|
||||
|
||||
if (pmap->class == prootmap->class) {
|
||||
pixR = (*pPix & pVisual->redMask) >> pVisual->offsetRed;
|
||||
|
||||
Reference in New Issue
Block a user