[Bug 101353] client to guest primary selection not working on Wayland (F25) with something already selected in the guest

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 30 19:53:30 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101353

--- Comment #4 from Jakub Janků <janku.jakub.jj at gmail.com> ---
(In reply to Christophe Fergeau from comment #3)
> I started looking into a similar bug on f25 client a while ago, I went as
> far as the GtkClipboard::owner-change signal not being emitted (or being
> emitted differently than on X11) when running on wayland. Did not have time
> to dig further :(

That's true, on Wayland the owner-change signal is emitted once the window
gains keyboard focus (see subsection "Selection" on
https://wayland.freedesktop.org/docs/html/ch04.html#sect-Protocol-data-sharing
).

I came across similar issue, but with normal clipboard selection
(Ctrl+C/Ctrl+V). Primary selection seems to work fine, most of the time anyway.

Tested on my machine, there seem to be multiple problems regarding clipboard
selection:
- owner-change is emitted twice, when we call gtk_clipboard_set_with_owner()
- clipboard_clear() is not called at all
- gtk_clipboard_set_with_owner() returns SpiceGtkSession, although the
ownership of the clipboard was taken by another client (so it should return
NULL). This causes the issue described by David.

I think this might be a bug in GTK, but further investigation is needed...

I came up with a quick temporary fix, see
https://github.com/jjanku/spice-gtk/commit/bf57fb2a31577f975855d60be407292f9ac5b594
Could you please give it a try?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-bugs/attachments/20171030/236543a2/attachment.html>


More information about the spice-bugs mailing list