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 <jamey@minilop.net>
Cc: Eamon Walsh <ewalsh@tycho.nsa.gov>
Reviewed-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
This commit is contained in:
Jamey Sharp 2010-05-08 18:55:55 -07:00
parent 04bad1b8a1
commit 3150417623

View File

@ -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;