[Wayland-bugs] [Bug 770333] GdkSelection does not support arbitrary named clipboards/selections on wayland

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Sun Oct 9 15:28:19 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=770333

--- Comment #12 from Emmanuele Bassi (:ebassi) <ebassi at gmail.com> ---
(In reply to Paolo Bacchilega from comment #11)
> I had to revert the change because I found out a use case where a different
> clipboard is useful, a detailed description is in the commit
> df19186483a5e3edf2ff89cfd92c30bf85b9420f

That particular use case is supported by not using a GdkSelection to store the
list of selected files in the first place. The only reason why you would use a
GdkSelection is, on X11, to use the X protocol as a form of IPC between two
separate instances of file-roller; since file-roller is a single-instance
application, there's no reason to use a GdkSelection to hold some URIs, since
there's no IPC taking place. 'Cut'/'Copy'/'Paste' operations should be
implemented inside the file-roller application singleton, by storing row
references to the GtkTreeView, or by storing a list of URIs.

Even if file-roller were to support multiple instances of the application, you
should use a better IPC mechanism, like DBus, instead of the X protocol, as it
has unknown latencies (which depend on things like your GPU stalling the event
queue) and a woefully inadequate type system.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20161009/b3c3c346/attachment.html>


More information about the wayland-bugs mailing list