Path: utzoo!attcan!uunet!cs.utexas.edu!usc!ucsd!ucbvax!bloom-beacon!dcs.leeds.ac.UK!neilb From: neilb@dcs.leeds.ac.UK (Neil Bowers) Newsgroups: comp.windows.x Subject: Re: Sharing window ID's between processes Message-ID: <20863.9007260822@csparc1.dcs.leeds.ac.uk> Date: 26 Jul 90 08:22:19 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 26 Hi Peter, > I am having trouble getting an application program > to draw into a window of another application. I get a > X Protocol error "not a valid window ID". I think your problem may be that the window hasn't actually been created by the time the second application tries to draw in it. The CreateWindow call may be buffered up, and since the applications are using different display connections, the second application's drawing requests might get to the server before the CreateWindow. If this is the case, flushing the buffer after you create the window will solve you problem. Hope this helps Neil =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Neil Bowers, JANET : neilb@leeds.dcs School of Computer Studies, UUCP : ukc!leeds.dcs!neilb University of Leeds, EARN/BITNET : neilb@dcs.leeds.ac.uk Leeds LS2 9JT. CSNET : neilb%leeds.dcs@nss.cs.ucl.ac.uk phone : +44 532 335478 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=