Path: utzoo!attcan!uunet!husc6!mailrus!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!jim From: jim@EXPO.LCS.MIT.EDU (Jim Fulton) Newsgroups: comp.windows.x Subject: Re: Killing Slave Xterms Message-ID: <8806131337.AA21757@EXPO.LCS.MIT.EDU> Date: 13 Jun 88 13:37:22 GMT References: <356@ksr.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: X Consortium, MIT Laboratory for Computer Science Lines: 18 The window id that was being printed was that of the widget, not of the top level window. If you change the paragraph in main.c that writes out the window id to the following, it should work (i.e. my test program gave the right result): if (am_slave) { /* Write window id so master end can read and use */ char buf[80]; buf[0] = '\0'; sprintf (buf, "%lx\n", screen->TekEmu ? XtWindow (XtParent (tekWidget)) : XtWindow (XtParent (term))); write (pty, buf, strlen (buf)); } Jim Fulton MIT X Consortium