DavidPhillips suggested a solution that did exactly what I wanted (in post #2). Thanks.
I was wondering if it's possible to move windows from one X server to another.
The specific use case I have in mind is this:
1) I start up xfoo on my home box (which runs `origx').
2) I ssh to my home box w. X-forwarding.
3) I temporarily move xfoo to the ssh X server (`sshx'), allowing me to see and interact with it--for all practical purposes make it appear as if it was ran on sshx in the first place.
4) I log off, and xfoo moves back to origx.
Is there any program that does this?
Would it be feasible to write one?
My first idea to do so would be to instruct origx to act as a relay wrt. to the given pids (and it would of course need to know how to talk to sshx).
My second idea would be to fudge with the sockets of xfoo (i.e. tell the kernel to replace socket y with socket z). But I feel that's bound to shoot me in the foot.
Any thoughts? Clueful insights are preferred, but I'll take anything