[PATCH] selection: send selection events to all connected clients

Rob Bradford robert.bradford at intel.com
Mon Apr 15 04:27:16 PDT 2013


On 15 April 2013 02:33, Matthias Clasen <matthias.clasen at gmail.com> wrote:
> On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu <yyc1992 at gmail.com> wrote:
>> A lot of useful features require clipboard access and monitoring
>> without having a keyboard focus, e.g. clipboard action (klipper[1] and
>> some download agents), command line access (IPython's %paste magic).
>> This patch sends out selection events to all clients when the
>> selection owner changes no matter whether the client has a focus or
>> not in order to support these features.

Hi Yichao - thank you for trying to solve this problem and for sending patches.

The problem you are attempting to solve is indeed a valuable one -
however it needs to be solved in line with the Wayland architecture.

>
> Clipboard managers are pretty specialized clients, and you usually
> only run at most one of them in your session - why confuse all other
> clients with the extra events ?

Indeed - I think the correct solution here is a dedicated clipboard
manager protocol between the compositor and the privileged clipboard
manager client. This will allow solving the problem in line with the
Wayland design.

You could look at how the input method support is implemented as an
example of such a protocol.

Rob


More information about the wayland-devel mailing list