nelhage / reptyr

Reparent a running program to a new terminal
MIT License
5.77k stars 216 forks source link

X11 stealing? #93

Closed SoniEx2 closed 6 years ago

SoniEx2 commented 6 years ago

unix sockets are unix sockets, so it should be possible to steal an X11 program from normal X11 and into X11-over-ssh, right?

it would be a really useful feature.

nelhage commented 6 years ago

Stealing the socket is probably possible, but the X protocol is stateful, and I think you'd need to also figure out how to enumerate and clone any pixmaps or other objects stored on the server. Also, local X11 may have already negotiated extensions like shared memory that aren't available over ssh forwarding. I don't think this is likely to be something I'm going to have time to explore, unfortunately.