Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!bjaspan From: bjaspan@athena.mit.edu (Barr3y Jaspan) Newsgroups: comp.windows.x Subject: Re: Can 2 Unix Processes Write into the Same Window? Message-ID: <1991Jan19.193317.24112@athena.mit.edu> Date: 19 Jan 91 19:33:17 GMT References: <276@silogic.UUCP> Sender: news@athena.mit.edu (News system) Reply-To: bjaspan@athena.mit.edu (Barr3y Jaspan) Distribution: usa Organization: Massachusetts Institute of Technology Lines: 16 In article <276@silogic.UUCP>, markd@silogic.UUCP (Mark DiVecchio) writes: |> I'm looking at a programming problem that could be solved if I |> can have 2 separate Unix processes draw into the same window. Yes. Any program that can open a connection to a display has free run of all windows on that display. Any number of clients can select on events, send drawing requests, etc., to any window *assuming that the client can get the appropriate window id*. So if your two clients agree on the name of the window, then one of them can create it and the other could search the entire window tree until it found it. (Note that there are actually some restrictions on multiple clients selecting on certain events for a window; the O'Reily books talk about it. -- Barr3y Jaspan, bjaspan@mit.edu