Clipboard and selection in wayland.
Bill Spitzak
spitzak at gmail.com
Mon Mar 11 10:19:27 PDT 2013
I think the solution is for "middle-button paste" to be done using the
drag & drop mechanism, which is different than the selection.
If the user selects an object and then clicks the middle mouse button,
the result should be the same as if they instead dragged the selected
object and then released at the position the middle mouse button was
clicked.
I'm not sure if the current drag & drop api can be made to do this. If
not then it should be modified to do this, and some clients (such as the
terminal at least) made to do this. It could even be default behavior
for toolkits.
Yichao Yu wrote:
> Hi,
>
> In X11 there are CLIPBOARD and PRIMARY selection each correspond to
> the current clipboard and selected content and applications can
> monitor the change of them using XFixes. In wayland, I have found
> wl_data_device which I suppose should do the similar thing. The
> question is, since there is only one wl_data_device::selection event,
> is it possible to get current selected data as well as clipboard
> content in wayland (or in another word is it possible to have X11's
> handy middle button paste)? I also found the only weston client that
> uses clipboard (weston-terminal) use it in a weird way, should this be
> considered a bug and should the selection signal used in a similar way
> as the XFixes signal in X to monitor clibpoard/selection changes?
>
>
> Thanks.
>
> Yichao Yu
> _______________________________________________
> 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