Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!jim
From: jim@EXPO.LCS.MIT.EDU (Jim Fulton)
Newsgroups: comp.windows.x
Subject: Re: Determining validity of a windowID
Message-ID: <8908142228.AA13122@expo.lcs.mit.edu>
Date: 14 Aug 89 22:28:42 GMT
References: <13488@bloom-beacon.MIT.EDU>
Sender: daemon@bloom-beacon.MIT.EDU
Organization: X Consortium, MIT Laboratory for Computer Science
Lines: 6


	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().