[Spice-devel] paste client clipboard selection to guest
Christophe Fergeau
cfergeau at redhat.com
Fri May 13 15:54:40 UTC 2016
Hey,
On Mon, Apr 18, 2016 at 06:26:29AM +0300, Alex Roithman wrote:
> I can't implement paste data to the guest.
>
> spice_main_clipboard_selection_notify()
> don't send data to guest even if implement
> as:
>
> spice_main_clipboard_selection_notify(
> (SpiceMainChannel *) gobject,
> VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD,
> type,
> (const guchar*)"153",
> 3);
>
> I read in
>
> http://www.spice-space.org/page/Whiteboard/AgentProtocol#Clipboard
> http://www.spice-space.org/docs/spice-gtk/SpiceMainChannel.html#SpiceMainChannel-main-clipboard-selection-request
>
> that sending possible if guest clipboard released
> and client clipboard data requested.
> But i don't know how to emit request signal for this.
> Maybe i not understand the logic of clipboard data moving.
> Need help or detail description. :)
Can you be more specific about what you are doing?
Do you have an application based on spice-gtk or spice-glib? Have you
checked how spicy (for example) handles copy and paste? Or are you
trying to do something special which spicy/remote-viewer are not doing?
Also, I assume you checked that with the applications mentioned above,
copy and paste works? (ie the agent is running in the guest, and working
as expected, it's only a problem with your code?)
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160513/a4911a0b/attachment.sig>
More information about the Spice-devel
mailing list