[comp.windows.x] Confusing Xlib behavior with X11R2

mja@mordor.s1.gov (Michael J. Allison) (09/20/88)

Perhaps someone can help me understand what is going on in this situation.
I am not sure if I am doing something wrong, or I uncovered some feature
of X11R2 on the Sun.

Here is the problem:

A client program has opened a window, and created a pseudo color table
for it. It then procedes to draw in the window. Every once and a while
the client stops drawing. Inspection with "dbx" reveals that the client
is waiting in a routine called "_XWaitForDrawable", through Xlib calls 
like XFillArea or XFillPolygon. The client does not resume execution
until some input event, such as a mouse movement, occurs within the
clients window.

The client performed a the following select call:

   XSelectInput( IRIS_display_id, IRIS_frontbuffer_window,  
		ButtonPressMask | ButtonReleaseMask | 
		KeyPressMask | PointerMotionMask );

The program performs in the same manner on other machines at our site.


The setup we are running is:

	A Sun 3/110
	Sun-Unix 3.5
	X11 Release 2

My question is:

Did I find a "feature/bug" or am I doing something wrong?