<div dir="ltr">Thanks, hopefully they'll review your patch soon since these features
are important on the desktop and since they plan to move Gnome to
Wayland by H1 2014 your work should land and get tested in Wayland asap
and get implemented in toolkit(s) upstream in time before 2014.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 12:13 PM, Giulio Camuffo <span dir="ltr"><<a href="mailto:giuliocamuffo@gmail.com" target="_blank">giuliocamuffo@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 dir="ltr">2013/4/16 Jiergir Ogoerg <span dir="ltr"><<a href="mailto:f35f22fan@gmail.com" target="_blank">f35f22fan@gmail.com</a>></span><br>
<div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div><div>Hi,<br></div>Between application running on X11 apparently there's no standard way to tell if file(s) (their URIs) have been "cut" or "copied" into the clipboard, so you don't know what to do on "Paste", so people invented (silly) workarounds as explained here [1]:<br>
<br>"Since there is no standard way to copy and paste files between
applications on X11, various MIME types and conventions are currently in
use. For instance, Nautilus expects files to be supplied with a <tt>x-special/gnome-copied-files</tt> MIME type with data beginning with the cut/copy action, a newline character, and the URL of the file."<br><br></div>
I wonder if the Wayland protocol allows for a proper/easy solution to this problem (I'm talking about cut/copy/paste, not drag-n-drop), like an additional uint32_t info field to code the type of action into it, not just the URI strings?<br>
</div></div></blockquote><div><br></div></div><div>No, currently it doesn't. Actually, there is no action field for drag and drop either. I made a patch, but it's still pending:</div><div><a href="http://lists.freedesktop.org/archives/wayland-devel/2013-March/007931.html" target="_blank">http://lists.freedesktop.org/archives/wayland-devel/2013-March/007931.html</a></div>
<div>That should however also work for selection, beside drag and drop.</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>
<br></div>I looked here [2] and wl_data_device::set_selection_arguments has a "uint serial" field but I'm not sure if it's meant to solve this problem or for a different reason.<br></div></blockquote><div>
<br></div></div><div>It's not related. The serial field is provided by the compositor in certain input events, and is used to make sure set_selection is called because of an input event.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
<div dir="ltr"><div><div><br></div><div>
Can anyone please explain?<br></div><div><br><br>[1] <a href="http://qt-project.org/doc/qt-4.8/qclipboard.html" target="_blank">http://qt-project.org/doc/qt-4.8/qclipboard.html</a><br>[2] <a href="http://wayland.freedesktop.org/docs/html/protocol-spec-interface-wl_data_device.html" target="_blank">http://wayland.freedesktop.org/docs/html/protocol-spec-interface-wl_data_device.html</a><br>
</div></div></div>
<br></div>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>