[comp.windows.x] Problems with routines in clients/xwd/dsimple.c

rao@enuxha.eas.asu.edu (Arun Rao) (09/28/89)

	This problem *has* to have a simple solution, but for
	the life of me, I can't figure out what it is.

	I'm attempting to use the function Select_Window() in
	the file clients/xwd/dsimple.c (R3 distribution). As I
	see it, the following piece of code should move and
	resize the window I select with the mouse:

	.....

	w_id = Select_Window(dpy);
	XMoveResizeWindow(dpy, w_id, 0, 0, 100, 100);

	.....

	The program creates a cursor and allows me to select a
	window, and even returns some window id. But when I click
	any button in any window, the program terminates with
	virtually no effect on the selected window. (Virtually,
	because the borders flash when I select a window - but
	that would have happened anyway). There is no error
	message of any kind, and I've tried XDestroyWindow and
	XLowerWindow instead of XMoveResizeWindow with no effect.

	What am I doing wrong ?

	Thanks in advance.

	-Arun


-- 
Arun Rao
ARPANET: rao@enuxha.eas.asu.edu BITNET: agaxr@asuacvax, agazr@asuacad
950 S. Terrace Road, #B324, Tempe, AZ 85281
Phone: (602) 968-1852 (Home) (602) 965-3452 (Office)