yes, this is the next step for the unix version. i have left space
in the xap/unix code to interact with the XSelection mechanism
(instead of and/or in addition to) the internal mechanism. the reason
for the internal approach is that ideally one would like to copy a
region of formatted text and then paste it and get the formatting in
addition to the text. by using an internal format, i can get a loss-less
round trip. from what i've seen of the XSelection mechanism, it's good
for clipping command lines and other plain text, but doesn't do formatted
text (but i could be wrong here).
my thoughts were that i'd copy to the internal clipboard and simultaneously
assert ownership on a copy. on a paste, i query for ownership and paste
from the system or from my internal clipboard depending upon who last asserted.
(handwave, handwave)
>
> A much better explanation can be found in section 2 of the ICCCM
> (Inter-Client Communication Manual), which is at:
>
> http://www.tronche.com/gui/x/icccm/sec-2.html
>
> See especially section 2.6.1. Thank you for listening; If I can get
> som time to read your code I will try to help out with implementation.
cool. thanks for the reference. if you really want to help, that'd be
cool -- i'll send you some design notes in a separate note in a minute.
jeff