[comp.windows.x] CLX bug

rick@psilocybin.UUCP (Rick Busdiecker) (01/13/88)

VERSION:
	X11 release 1
SYNOPSIS:
	It is not possible to set the position of a window within its parent to
	be a negative value using the CLX interface.
DESCRIPTION:
	The setf forms for DRAWABLE-X and DRAWABLE-Y expect a value whose type
	is CARD32, which is DEFTYPEd to be (UNSIGNED-BYTE 32).  Therefore when
	a negative integer is used, an error is signaled: ``X-Error: -10 isn't
	card32''
REPEAT-BY:
	Use CREATE-WINDOW to make a child, CHILD, of a root window.
	Evaluate (SETF (DRAWABLE-X CHILD) -10)
FIX:
	I would guess that a fix might be to change the CARD32 in the last
	form of the CHANGE-DRAWABLE-GEOMETRY definition to be INT16 as is
	stated in the January 1987 ``near-release'' of the protocol
	specification for the ConfigureWindow request.  However, from a quick
	look at the code, I would guess that this would allow an application
	to set DRAWABLE-WIDTH and DRAWABLE-HEIGHT to negative values as well.


			Rick Busdiecker
			Expert Technologies Incorporated

			sunpitt!eti!rick@sun.com
				or
			rfb@cs.cmu.edu