[comp.windows.x] Determining validity of a windowID

crcraig@athena.mit.edu (Christopher R Craig) (08/15/89)

Is there any way to determine whether a windowID is still valid (i.e.
the window still exists) without generating a BadWindow error?
----------------------------------------
Chris Craig                      MIT '89
crcraig@athena.mit.edu

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (08/15/89)

	Is there any way to determine whether a windowID is still valid (i.e.
	the window still exists) without generating a BadWindow error?

Install an error handler that catches the BadWindow error on X_GetGeometry
requests and returns 0.  Then, test the result of XGetGeometry().