[comp.windows.x] question about selections

dtomm@oracle.com (06/06/90)

I have two instances of the same client using an
application-defined selection atom to cut and paste data between them.
These data are stored in an application-defined property.
The cut-and-paste part works fine. 

When the owner of the selection terminates, it transfers ownership of
the selection to the root window, and transfers the data to the root
window.  But when I try to paste into the remaining client, the owner
of the selection has reverted to None.

Is this expected behavior?  Am I even doing it right?

Any comments or advice would be rapturously appreciated.

Doug Tomm
Oracle Corp.
dtomm@oracle.com
415-598-4494

Oracle doesn't know what I'm doing, and I don't know what Oracle's
doing, and we're all happy that way.

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (06/06/90)

    When the owner of the selection terminates, it transfers ownership of
    the selection to the root window,

The owner of a selection is a client, not a window.  When the client
goes away, ownership goes away.

    But when I try to paste into the remaining client, the owner
    of the selection has reverted to None.

Correct.

    Is this expected behavior?

Yes.  Selections have to be owned by clients; they are not just properties.