From 26b35374994fb341d265235155fb8111d8559b2c Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 11 Mar 2025 15:01:22 +0100 Subject: [PATCH] Revert "dix: AllocColor() dont fire Xace hook when looking up color at root window" This reverts commit 912c0c1f76d6cf54864bdd9eda872a19281f65d6. --- dix/colormap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dix/colormap.c b/dix/colormap.c index fa1f9adbb..b6afe230e 100644 --- a/dix/colormap.c +++ b/dix/colormap.c @@ -1026,7 +1026,7 @@ AllocColor(ColormapPtr pmap, dixLookupResourceByType((void **) &prootmap, pmap->pScreen->defColormap, X11_RESTYPE_COLORMAP, - NULL, DixReadAccess); + clients[client], DixReadAccess); if (pmap->class == prootmap->class) FindColorInRootCmap(prootmap, prootmap->red, entries, &rgb, @@ -1044,7 +1044,7 @@ AllocColor(ColormapPtr pmap, dixLookupResourceByType((void **) &prootmap, pmap->pScreen->defColormap, X11_RESTYPE_COLORMAP, - NULL, DixReadAccess); + clients[client], DixReadAccess); if (pmap->class == prootmap->class) { pixR = (*pPix & pVisual->redMask) >> pVisual->offsetRed;