On Sun, Mar 02, 2003 at 12:44:22AM +0100, Jan Vornberger wrote: > >Wouldn't it make more sense if windows were attached to the frame where > >the program was started from instead of the current frame? > >Indeed it would. There's just no generally viable way to do this without > >application support. > > Why is that? Can't you just take the pid from the > 'window-creating-application', find its parent and attach it to the > frame where the parent process lives? Or don't you know the pid?
AFAIK, there is normally no way for an X client to determine the pid of the process that created a specific window. > Would somebody be so kind to explain to me what makes this impossible? > Thank you. > It isn't strictly impossible. It is possible to this by using LD_PRELOAD to overload Xlib functions and communicate the pid by a window property. I have done that with [0]ionlaunch, and you could easily modify Ion to pass whatever frame you want an application to appear in. This approach, however, is probably not a very good solution since it has problems (some applications do not work with it, for example). [0] http://kanin.dsv.su.se/ion/ionlaunch/ /Pelle
