xserver/hw/xquartz/xpr
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 XQuartz: remove undefined XSERVER_CFLAGS variable 2010-03-15 08:24:02 -07:00
appledri.c Make WriteEventsToClient/WriteToClient no-op on fake or dead clients. 2010-05-19 12:32:34 -07:00
appledri.h XQuartz: Add support for GLXPixmaps to the AppleDRI. 2009-02-16 21:42:45 -08:00
appledristr.h XQuartz: Pad xAppleDRINotifyEvent to 32bytes to match sizeof(xEvent) 2009-04-01 13:52:52 -07:00
dri.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
dri.h XQuartz: Add support for GLXPixmaps to the AppleDRI. 2009-02-16 21:42:45 -08:00
driWrap.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
driWrap.h XQuartz: Add driWrap.h that I missed in the last commit. 2009-02-16 21:42:54 -08:00
dristruct.h Merge branch 'master' into XACE-SELINUX 2007-12-13 18:38:25 -05:00
x-hash.c XQuartz: LP64 related casting fixes from Bob Murphy 2008-10-31 19:03:38 -07:00
x-hash.h XQuartz: Fix a bunch of compilation warnings about style 2009-09-27 23:31:35 -07:00
x-hook.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
x-hook.h Darwin: Flattened quartz into darwin, renamed darwin xquartz 2007-12-05 20:32:40 -08:00
x-list.c x-list.c: null-returning function malloc() was called without checking 2010-05-02 15:27:29 -07:00
x-list.h Darwin: Flattened quartz into darwin, renamed darwin xquartz 2007-12-05 20:32:40 -08:00
xpr.h XQuartz: Transition from xEvent based mieq to InternalEvent 2009-09-27 23:31:07 -07:00
xprAppleWM.c XQuartz: Use applewmproto 1.4 updated headers. 2009-08-25 20:16:47 -07:00
xprCursor.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
xprEvent.c XQuartz: Transition from xEvent based mieq to InternalEvent 2009-09-27 23:31:07 -07:00
xprEvent.h XQuartz: Transition from xEvent based mieq to InternalEvent 2009-09-27 23:31:07 -07:00
xprFrame.c Rootless: Abstract some of the Xplugin specific stuff which has crept into rootlessWindow.c 2009-10-13 13:59:57 -07:00
xprScreen.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00