mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
Kill DoChangeGC in favor of dixChangeGC.
This doesn't change any behavior, but it isn't clear whether NullClient is correct in all cases. As ajax says, > For most of these changes, I think it's correct to use NullClient, > since they are server-initiated changes and should not fail for (eg) > xace reasons. ... At any rate, you're certainly not changing any > semantics by leaving them all as NullClient, so this patch can't be > more wrong than before. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
afcbbd6dfe
commit
65cedf3905
14 changed files with 40 additions and 92 deletions
|
|
@ -371,7 +371,7 @@ miDCPutBits (
|
|||
if (sourceGC->fgPixel != source)
|
||||
{
|
||||
gcvals[0] = source;
|
||||
DoChangeGC (sourceGC, GCForeground, gcvals, 0);
|
||||
dixChangeGC (NullClient, sourceGC, GCForeground, gcvals, NULL);
|
||||
}
|
||||
if (sourceGC->serialNumber != pDrawable->serialNumber)
|
||||
ValidateGC (pDrawable, sourceGC);
|
||||
|
|
@ -391,7 +391,7 @@ miDCPutBits (
|
|||
if (maskGC->fgPixel != mask)
|
||||
{
|
||||
gcvals[0] = mask;
|
||||
DoChangeGC (maskGC, GCForeground, gcvals, 0);
|
||||
dixChangeGC (NullClient, maskGC, GCForeground, gcvals, NULL);
|
||||
}
|
||||
if (maskGC->serialNumber != pDrawable->serialNumber)
|
||||
ValidateGC (pDrawable, maskGC);
|
||||
|
|
|
|||
Loading…
Reference in a new issue