Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!intelca!mipos3!pinkas From: pinkas@hobbit.intel.com (Israel Pinkas ~) Newsgroups: comp.windows.x Subject: Reparenting WM's Message-ID: Date: 6 Feb 89 21:35:58 GMT Sender: news@mipos3.intel.com Distribution: comp Organization: Corporate CAD, INTeL Corporation, Santa Clara, CA Lines: 42 I am porting an application that currently uses serial graphics terminals for graphics. Occasionally, the program needs to display a large quantity of text, and switches the terminal to text mode (and hides the graphics). In porting this application, the power that be decided that the mechanism we would use would be to raise the xterm from which the application was invoked and display the text. (We use the WINDOWID environment variable to determine the correct xterm.) The calling sequence is: XSelectInput(disp, xterm_win, ExposureMask | StructureNotifyMask); XRaiseWindow(disp, xterm_win); do { XWindowEvent(disp, xterm_win, ExposureMask | StructureNotifyMask, &rep); } while ((rep.type != ConfigureNotify) || (rep.type == Expose && rep.xexpose.count == 0)); XSelectInput(disp, xterm_win, NoEventMask); This works fine when there is no window manager, or with uwm. However, every other window manager that I have (dxwm, twm) reparents the xterm. As a result, the XRaiseWindow() has no affect on the xterm window, and I hang in the loop. Is there any way to accomplish what I am trying to do. This port is fairly short lived, so having the application create and manage it's text window is not feasible. (We use the same code for an escape to shell, so we cannot accomplish everything by having a window that we write text to.) -Israel -- -------------------------------------- Disclaimer: The above are my personal opinions, and in no way represent the opinions of Intel Corporation. In no way should the above be taken to be a statement of Intel. UUCP: {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!cad001!pinkas ARPA: pinkas%cad001.intel.com@relay.cs.net CSNET: pinkas@cad001.intel.com