[Wayland-bugs] [Bug 759626] Clipboard (copy-and-paste) Wayland→Wayland or Wayland→X11 from closed applications is broken
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Tue May 17 03:46:49 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=759626
Jonas Ådahl <jadahl at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jadahl at gmail.com
--- Comment #3 from Jonas Ådahl <jadahl at gmail.com> ---
(In reply to Michael Catanzaro from comment #2)
> (In reply to Olivier Fourdan from comment #1)
> > Carlos, can we have data remaining after a client is gone? The selection
> > data offer ends with the client, doesn't it?
>
> Yes, there is currently no equivalent of a clipboard manager in Wayland.
There is one in weston. See
https://cgit.freedesktop.org/wayland/weston/tree/src/clipboard.c
> But
> there's fundamentally no reason it couldn't exist. That role would belong to
> mutter, of course. We would need to add a Wayland request that says "hey
> compositor, eat my clipboard now please and thank you," probably
> wl_data_source::store with no parameters. I think that would probably be
> upstreamable.
Why would there be a need for a new request? Is it for making the client
control what selections would be more "persistent" than others or something?
Otherwise, it should work already, the way same clipboard.c in weston works.
> Then, trigger that from gtk_wayland_display_store_clipboard()
> and flip the return value of
> gdk_wayland_display_request_selection_notification(). mutter would then
> drain the wl_data_source (triggering wl_data_source::send in the client) for
> each supported MIME type (inefficient, but that's the nature of clipboard
> managers, right?), and use it to respond to any future
> wl_data_offer::receive requests from other clients. We really ought to do
> something along these lines sooner or later, as users do not expect
> clipboard data to disappear when an app is closed.
If we want to have more explicit clipboard manager support (such as a "store"
request) that should probably added as an extension ala "wp_clipboard_manager".
--
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/20160517/315bac9f/attachment.html>
More information about the wayland-bugs
mailing list