Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!pasteur!postgres.Berkeley.EDU!Luis From: Luis@postgres.Berkeley.EDU (Luis Miguel) Newsgroups: comp.windows.x Subject: Discarding expose events via Xtoolkit. Keywords: expose evnts Xt Message-ID: <10165@pasteur.Berkeley.EDU> Date: 21 Feb 89 19:39:44 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: luis@postgres.berkeley.edu Organization: UC Berkeley Lines: 23 i am writing a widget which is a subclass of composite. When I remove some of its child widgets, I get an expose event per call to XtDestroyWidget. Since I remove many widgets at a time, I would like to be able to get the first expose event, and then get rid of the rest. (Note: by expose events I mean calls to my ChangeManaged routine which I assume is called by the Xtoolkit when an expose event arrives). Does the toolkit support such a thing? Or do I need to go down to the Xlib level and flush the events myself? What I tried to do, and did not work due to the asynchronous nature of X, ids to add a flag which is set to false when I start destrying widgets and set to true when done. This flag is tested in my ChangeManaged routine. Thanks, /Luis Luis Miguel. Computer Science Division, UC Berkeley. arpanet: luis@postgres.Berkeley.EDU uucp: {ihnp4,decvax}!ucbvax!ingres!luis at&t: (415) 642-9585 (Work)