From 315041762313598aad90df84226e2d2def4a0fc9 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Sat, 8 May 2010 18:55:55 -0700 Subject: CreateGC: Pass current client on to ChangeGC. Otherwise we can't check that the XIDs this GC is being initialized with are accessible to this client. Signed-off-by: Jamey Sharp Cc: Eamon Walsh Reviewed-by: Eamon Walsh --- dix/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dix/gc.c') diff --git a/dix/gc.c b/dix/gc.c index a7b335cb8..c9b704a66 100644 --- a/dix/gc.c +++ b/dix/gc.c @@ -574,7 +574,7 @@ CreateGC(DrawablePtr pDrawable, BITS32 mask, XID *pval, int *pStatus, if (!(*pGC->pScreen->CreateGC)(pGC)) *pStatus = BadAlloc; else if (mask) - *pStatus = dixChangeGC(NullClient, pGC, mask, pval, NULL); + *pStatus = dixChangeGC(client, pGC, mask, pval, NULL); else *pStatus = Success; -- cgit v1.2.3