[comp.windows.x] Flushing a buffer for a window not my own

jturmell@hawk.ulowell.edu (Jeff Turmelle) (05/12/89)

   I am running an application where I open a
  display, a window, draw to the window, etc...

   I have an Event handler as a separate process,
  so I open the display again, select input
  from the window, and get the events from the
  window.  The problem is the buffer isn't being
  flushed after I get each event and redraw the
  window for expose events,...  

   I assume the problem is I have opened a second
  display, and when getting events using XNextEvent,
  the display being flushed is my Event Handler display
  and not my original window's display. 

   Can anyone tell me if this is actually the 
  problem, and if so how I can get the window to
  be flushed without making a lot of XFlush calls.
  I am drawing hundreds of very small lines, and 
  don't want to make that many XFlush calls.


	Thanks for any help,
		Jeff Turmelle
		jturmell@hawk.ulowell.edu