xserver-multidpi/xfixes
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
..
cursor.c Make WriteEventsToClient/WriteToClient no-op on fake or dead clients. 2010-05-19 12:32:34 -07:00
Makefile.am Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
region.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
saveset.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
select.c Make WriteEventsToClient/WriteToClient no-op on fake or dead clients. 2010-05-19 12:32:34 -07:00
xfixes.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
xfixes.h xfixes: Fix a couple of resource lookups 2009-04-14 14:24:40 -04:00
xfixesint.h Update Sun license notices to current X.Org standard form 2009-12-16 17:11:35 -08:00