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

Yichao Yu yyc1992 at gmail.com
Sun Apr 14 18:54:56 PDT 2013


On Sun, Apr 14, 2013 at 9:38 PM, Bill Spitzak <spitzak at gmail.com> wrote:
> On 04/14/2013 06:33 PM, Matthias Clasen 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.
>>
>>
>> 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 ?
>
>
> Especially because it sounds like it will be sent to minimized or
> otherwise-hidden clients.
>
> I think a request that says "send me the next change the the clipboard"
> would work and match how Wayland is designed more than an api where the
> client turns "send me clipboard changes" on/off.

Send next change will not work since it won't allow the client to know
the content right now. It also makes toolkits that want to support
getting clipboard content at any time (which means all toolkits) and
clipboard managers more complicated.

There are two problems that are solved by this patch, getting
clipboard content at any time and clipboard monitoring. I really think
this is the simplest approach and fits the best with how events works
in wayland.

>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list