xserver-multidpi/composite
Jamey Sharp e291c56182 Return an appropriately-typed error from dixLookupResourceByType.
Rather than always returning BadValue, associate an error status like
BadWindow with a resource type like RT_WINDOW, and return the
appropriate one for the requested type.

This patch only touches the core protocol resource types. Others still
return BadValue and need to be mapped appropriately.

dixLookupResourceByType can now return BadImplementation, if the caller
asked for a resource type that has not been allocated in the server.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-05-19 12:32:48 -07:00
..
compalloc.c Replace dixChangeGC with calls directly to the right variant. 2010-05-13 17:14:07 -07:00
compext.c Return an appropriately-typed error from dixLookupResourceByType. 2010-05-19 12:32:48 -07:00
compinit.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
compint.h Update Sun license notices to current X.Org standard form 2009-12-16 17:11:35 -08:00
compositeext.h Export CompositeRegisterAlternateVisuals. 2009-04-27 13:29:40 -07:00
compoverlay.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
compwindow.c os: Prevent core dump from being truncated. 2010-02-17 23:20:52 -08:00
Makefile.am Export CompositeRegisterAlternateVisuals. 2009-04-27 13:29:40 -07:00