[comp.windows.x] NoExpose event?

pinkas@cad001.intel.com (Israel Pinkas ~) (08/04/89)

Is the server supposed to send a NoExposeEvent (or GraphicsExpose events)
when using XCopyArea to copy a window to a pixmap?  I have the following
code:

	XCopyArea(display, win, pix, lineGC,
		  sx, sy, sw, sh, 0, 0);

	do {
	    XMaskEvent(display, NoEventMask, &rep);
	} while ((rep.type != NoExpose) &&
		 ((rep.type != GraphicsExpose) ||
		  (rep.xgraphicsexpose.count != 0)));

The call to XMaskEvent does not return.  Same problem if I use XNextEvent.

The need for this is that I am lowering the window.  I have determined that
they area defined by (sx, sy, sw, sh) should be saved away, and pix was
created to be the correct size.  I need to do this before lowering the
window.

My understanding from the documentation is that I am supposed to either get
a NoExpose event or at least one GraphicsExpose event.  No mention was made
of a special case if the destination is a drawable.

Any help would be appreciated.

Thanks,

-Israel Pinkas
--
--------------------------------------
Disclaimer: The above are my personal opinions, and in no way represent
the opinions of Intel Corporation.  In no way should the above be taken
to be a statement of Intel.

UUCP:	{amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!cadev4!pinkas
ARPA:	pinkas%cadev4.intel.com@relay.cs.net
CSNET:	pinkas@cadev4.intel.com

rws@EXPO.LCS.MIT.EDU (08/04/89)

    Is the server supposed to send a NoExposeEvent (or GraphicsExpose events)
    when using XCopyArea to copy a window to a pixmap?

Yes, if you have graphics_exposures set to True in the GC.