xserver-multidpi/randr
Jamey Sharp 4b9600a416 Make WriteEventsToClient/WriteToClient no-op on fake or dead clients.
This matches the test in TryClientEvents, and is a superset of tests
done by the callers of these functions. The consequence of forgetting
these tests is a server crash, so they're always desirable. In my
opinion, it's better to not require the callers to remember to do these
checks.

For callers that don't do very much work before calling WriteToClient or
WriteEventsToClient, I've removed the redundant checks.

hw/xquartz/xpr/appledri.c has an interesting case: While its check for
"client == NULL" appears redundant with the test in WriteEventsToClient,
it dereferences client to get the sequence number.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=27497
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-05-19 12:32:34 -07:00
..
Makefile.am Export rrtransform.h as needed by randrstr.h 2008-11-24 13:24:41 -08:00
mirandr.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
randr.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
randrstr.h unifdef -B -DRENDER to always include RENDER code 2010-04-19 09:26:10 -07:00
rrcrtc.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
rrdispatch.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
rrinfo.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
rrmode.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
rroutput.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
rrpointer.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
rrproperty.c Make WriteEventsToClient/WriteToClient no-op on fake or dead clients. 2010-05-19 12:32:34 -07:00
rrscreen.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
rrsdispatch.c randr: switch to byte counting functions 2009-07-14 10:14:01 +10:00
rrtransform.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
rrtransform.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
rrxinerama.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00