At the moment, there is nothing stopping someone from doing something stupid like:
xpra start :10 DISPLAY=:10 xpra attach :10 DISPLAY=:10 xterm&
This results in the same problem if going via more than one hop:
xpra start :10 xpra start :11 DISPLAY=:10 xpra attach :11 DISPLAY=:11 xpra attach :10 DISPLAY=:10 xterm&
Both will create a loop, and cause the new window to appear on the first server, then be forwarded on the second where it is forwarded back to the first... until everything goes down in flames.
We can prevent this by:
gdk.Window
when we process the do_map_event
, which is before we get a chance to set the property which would let the server know the server-uuid
that this new window belongs to... (see patch)
This will do for now.
forwards the server uuid the window originally belongs to
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/210