<div dir="ltr">Anyone know about clipboard?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 30, 2013 at 11:39 PM, Yichao Yu <span dir="ltr"><<a href="mailto:yyc1992@gmail.com" target="_blank">yyc1992@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have already sent a email about the clipboard and selection in<br>
wayland a few weeks ago[1] (mainly about middle button paste). After<br>
reading more about clipboard and selection protocol in wayland, I have<br>
more questions about the limitation of the protocol.<br>
<br>
1, as mentioned in my previous email[1], there is no support for<br>
middle button paste right now. This is totally different from either<br>
normal clipboard or dnd. (p.s. If this is added in the future, what<br>
should be the name of it since the clipboard right now is taking the<br>
name "selection").<br>
2, about clipboard manager (or the similar function provided by<br>
clipboard manager in X11). The bear protocol doesn't seems to support<br>
selection access after a program quit (not to mention other advanced<br>
features provided by clipboard manager like clipboard history). Krh<br>
mentioned in a bug report[2] that there is a more advanced<br>
implementation in weston now, but the only thing I have found that may<br>
be related is the src/clipboard.c file in weston, which at least<br>
doesn't work out-of-box for weston-terminal. Is that a simple<br>
implementation of clipboard manager in the compositor? Any<br>
documentation how it should work? Haven't found any documentation<br>
about what the application should do (e.g. info the clipboard manager<br>
or at least the compositor about going to exit) in order to support<br>
it. IMHO, it is still a good idea to make it possible for having a<br>
standalone clipboard manager to provide some advanced feature.<br>
3, about clipboard access and monitoring. According to the protocol,<br>
the client will only receive wl_data_device::data_offer event and the<br>
wl_data_offer object will only be valid when the client has a input<br>
focus. Why is this constraint added, This means 1) It is impossible to<br>
monitor the clipboard (since the client will not always have a focus)<br>
2) it is impossible for a cli clipboard access, both of which are<br>
useful features that are possible (and easy) to implement in X. Having<br>
to provide a serial and having ::accept and ::recieve as separate<br>
request/event make this even harder. Is there any reason this is<br>
designed in such a way?<br>
<br>
<br>
[1] <a href="http://www.mail-archive.com/wayland-devel@lists.freedesktop.org/msg07467.html" target="_blank">http://www.mail-archive.com/wayland-devel@lists.freedesktop.org/msg07467.html</a><br>
[2] <a href="https://bugs.freedesktop.org/show_bug.cgi?id=52077#c1" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=52077#c1</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Yichao Yu<br>
</font></span></blockquote></div><br></div>