Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: Can I tell when drawing is finished Message-ID: <8908101720.AA15164@xenon.lcs.mit.edu> Date: 10 Aug 89 17:20:22 GMT References: <18987@mimsy.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 12 > I would like to know if there is a way I can block program execution > until the X server in question has finished DRAWING all that was > requested of it. x11perf (an X performance measuring program) uses a single pixel GetImage to wait for drawing to finish. This works because X guarantees that requests appear to execute sequentially; the GetImage must wait for all of the drawing to finish before it can extract the results. If you don't care about flushing any display hardware pipeline, you can use XSync(dpy, FALSE).