diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-05-08 18:55:55 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-05-12 18:16:37 -0700 |
commit | 315041762313598aad90df84226e2d2def4a0fc9 (patch) | |
tree | 19dcb6ac9de6d509bb89fca7e8d6c295c1765cb5 | |
parent | 04bad1b8a118a83064316d6e4327234aee19361e (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>
-rw-r--r-- | dix/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |