Clipboard management

Lubos Lunak l.lunak at suse.cz
Fri Apr 30 16:00:18 EEST 2004


On Wednesday 28 of April 2004 21:16, Matthias Clasen wrote:
> In order to move forward with solving the clipboard problems, here is a
> proposal to codify the existing practice of using the CLIPBOARD_MANAGER
> selection to ensure mutual exclusion for clipboard managers. This
> manager selection already is supported by the classic xclipboard client,
> the Motif clipboard manager and gcm. I don't know if Klipper uses it
> currently.

 No, it doesn't, but there's no problem adding it. Is just owning the 
selection enough, or are there some other requirements? I can't find any 
documentation on it, other than 
http://www.faqs.org/faqs/motif-faq/part9/section-21.html , I don't see 
anything about it in the ICCCM, despite the Motif FAQ saying so.

 Note also that Klipper works differently than how the Motif FAQ says, it does 
not claim CLIPBOARD ownership unless there's no other owner, but I guess 
that's not really important.

>
> Beyond that, I propose to use a side effect target on the manager
> selection to support handing over clipboard ownership when the clipboard
> owner exits.
>
>
> Matthias
>
>
> Clipboard Manager Specification
> ===============================
>
> Responsibilities of clipboard managers
> --------------------------------------
>
> Clipboard managers will acquire ownership of a selection named
> CLIPBOARD_MANAGER, as described in section 1.2.6 of the ICCCM. Clipboard

 The reference to 1.2.6 is unnecessary and IMHO just confusing. There will be 
just one selection, so there's no need for discriminated names.

> Clipboard managers should support conversion of the SAVE_TARGETS target
> on their manager selection. This is a side-effect target, as described
> in ICCCM section 2.6.3.
>
> When a clipboard manager receives a request to convert the manager
> selection to the target SAVE_TARGETS, the named property specifies a
> list of targets to convert the CLIPBOARD selection to. If the named
> property exists, it must be of type ATOM and contain the list of
> targets. If the named property does not exist, the list of targets
> should be obtained by converting the CLIPBOARD to the TARGETS target.

 I think I have some trouble decriphering what this says. Could you please 
explain this once again in normal human speech?

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/




More information about the xdg mailing list