summaryrefslogtreecommitdiff
path: root/dix/gc.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2010-05-08 18:55:55 -0700
committerJamey Sharp <jamey@minilop.net>2010-05-12 18:16:37 -0700
commit315041762313598aad90df84226e2d2def4a0fc9 (patch)
tree19dcb6ac9de6d509bb89fca7e8d6c295c1765cb5 /dix/gc.c
parent04bad1b8a118a83064316d6e4327234aee19361e (diff)
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>
Diffstat (limited to 'dix/gc.c')
-rw-r--r--dix/gc.c2
1 files changed, 1 insertions, 1 deletions
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;