[comp.windows.x] multiple clients sharing one window problem

solomon@dev8a.mdcbbs.com (10/04/90)

I would like to create a multiple session application where each session has
a common user interface.  I have no problem with this aspect of it, but the
pain is that when the session that originally created the user interface 
windows dies via any mechanism( crash, normal terminate, whatever) the
user interface windows go away.  I now am designing a recover program, but
this simply does not seem like th right approach.

XAddToSaveSet does not seem to do it.
XReparentWindow is no good because by the time I get the DestroyNotify the
window id of the user interface windows is trash.
I have tried various other ways, like having all the sessions( on the Destroy)
try to become the new primary session by trying to become the selection owner
of a given atom and waiting a little while for SelectionClear events which
means that only one of the sessions should not go to sleep until the 
user interface is up again.

Any ideas?

Thanks in advance!

Barry