<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 13, 2014 at 3:12 PM, Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">John Kåre Alsaker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Mar 12, 2014 at 7:32 PM, Bill Spitzak <<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Isn't Wayland differentiating between the "selection" and the clipboard?<br>
</blockquote>
It is not doing that at the moment. Only explicit clipboard actions<br>
are supposed to be used.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The selection is changed when the user selects an object.The clipboard is<br>
changed only when the user does a cut or copy operation.<br>
</blockquote>
There is no such thing as a selection in the Wayland protocol, even<br>
though things are named 'selection'. It actually just refers to the<br>
clipboard (or so I'm told).<br>
</blockquote>
<br></div>
In that case this patch makes sense.<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is also drag & drop. Though in most cases this can be the same as the<br>
selection, I think there was some pathological examples showing that it has<br>
to be it's own piece of data.<br>
</blockquote>
Drag and drop is separate from the clipboard in the protocol.<br>
</blockquote>
<br></div>
I believe then that drag & drop can be used for x-style selection.<br>
<br>
The idea is that a client can turn some action (such as a middle mouse click) into the same result as though the user dragged from a selected object and dropped at that point. Hopefully this can be done by reusing as much of the drag & drop api as possible.<br>

<br>
I don't think it has to be any more complex than that. There is only one potential drag source (whichever client last said it was a drag source, there is no attempt to choose from many potential drag sources to find the correct data type). The clients on either end are aware that this is happening so they can disable it or make the result different from drag & drop, though making it identical is encouraged.<br>

<br>
I do not believe that removing middle-mouse paste (or making it use the clipboard) will be acceptable to X users, so something MUST be done in Wayland.<br><div class="HOEnZb"><div class="h5"></div></div></blockquote><div>
<br></div><div>Patches welcome. Complaining is not.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div></div>