<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body><span class="vcard"><a href="page.cgi?id=describeuser.html&login=jadahl%40gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Clipboard (copy-and-paste) Wayland→Wayland or Wayland→X11 from closed applications is broken"
href="https://bugzilla.gnome.org/show_bug.cgi?id=759626">bug 759626</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>jadahl@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Clipboard (copy-and-paste) Wayland→Wayland or Wayland→X11 from closed applications is broken"
href="https://bugzilla.gnome.org/show_bug.cgi?id=759626#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Clipboard (copy-and-paste) Wayland→Wayland or Wayland→X11 from closed applications is broken"
href="https://bugzilla.gnome.org/show_bug.cgi?id=759626">bug 759626</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=jadahl%40gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span></b>
<pre>(In reply to Michael Catanzaro from <a href="show_bug.cgi?id=759626#c2">comment #2</a>)
<span class="quote">> (In reply to Olivier Fourdan from <a href="show_bug.cgi?id=759626#c1">comment #1</a>)
> > 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.</span >
There is one in weston. See
<a href="https://cgit.freedesktop.org/wayland/weston/tree/src/clipboard.c">https://cgit.freedesktop.org/wayland/weston/tree/src/clipboard.c</a>
<span class="quote">> 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.</span >
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.
<span class="quote">> 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.</span >
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".</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>