Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!goldhill.COM!jne From: jne@goldhill.COM Newsgroups: comp.windows.x Subject: waiting for expose events. Message-ID: <8908281723.AA16917@godzilla.goldhill.com> Date: 28 Aug 89 17:23:23 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 25 When I map a widget, using XtMapWidget, how can I wait for all the expose events to be generated. I want to do the following: void map_and_wait (w) Widget w ; { XtMapWidget(w) ; ProcessEvents(w) ; return ; } When map_and_wait completes, I do not want (in general), for any more expose events to come along in the pipeline. It's okay if it occasionally, but rarely happens -- I'm trying to solve a double repaint problem. I know I'm having the problem because my program is poorly structured, i.e., not completely event generated, but there's not much I can do about that now. Thanks. Jeff Eisen Gold Hill Computers 617-621-3404 jne@goldhill.com