Hi Folks,
How to transplant X windows from machine to machine?
Suppose I have a LAN of machines, each running various apps in different X windows and variously displaying on the local or on other machines (i.e. users have been logging in from various machines to various other machines).
Now: a user, who has an app which is running on machine A and displaying on machine B, goes to machine C and wants to transplant the X window[s] from machine B so as to display on machine C, *without stopping and restarting the app on A*.
The program 'xlsclients' can be used to find out the information which identifies X windows on the various machines.
I guess that the X display an app appears on is "stored" in the running app itself (either picked up from the $DISPLAY for the session or set by "-display ... "), so that changing this involves sending some message to the app itself rather than to any X server.
However, I don't have any idea how to send such a message (e.g. to a particular 'xterm' running on A and displaying on B, which is now wanted to display on C).
Any ideas?
Perhaps, as well as telling the app on A to change display to C, it may be necessary to tell the X server on B that it should stop trying to display the app; or maybe that may fall out automatically.
(I guess process ownership issues don't pose a problem, since the user can log in to A or B from C as the user who owns the instance of the app).
Just to make it clear: Initially, the user started the app on A while logged in from B. The user is now at C, and wants access to the app as if [s]he had logged in from C in the first place.
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 167 1972 Date: 24-Jan-02 Time: 08:42:05 ------------------------------ XFMail ------------------------------