Bug 34833

Summary: protocol: add clipboard selection capability
Product: Spice Reporter: Marc-Andre Lureau <marcandre.lureau>
Component: protocolAssignee: Alexander Larsson <alexl>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: protocol: add clipboard selection capability

Description Marc-Andre Lureau 2011-02-28 05:51:30 UTC
Add a new capability VD_AGENT_CAP_CLIPBOARD_SELECTION.

When both client and servers have this capability, the
VDAgentClipboard* messages MUST be prepended with a uint8_t indicating
which clipboard selection to operate + 3 bytes stuffing for alignment
that could be used for future capabilities or extensions.

A few clipboard selection are defined according to X11/Gtk scheme:

- VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD: the default clipboard,
  implemented by most OS to deal with explicit Copy/Paste operations.

- VD_AGENT_CLIPBOARD_SELECTION_PRIMARY: the PRIMARY clipboard, used
  for mouse selections.

- VD_AGENT_CLIPBOARD_SELECTION_SECONDARY: the SECONDARY clipboard.

See also:
http://www.freedesktop.org/wiki/Specifications/ClipboardsWiki
Comment 1 Marc-Andre Lureau 2011-02-28 05:51:33 UTC
Created attachment 43926 [details] [review]
protocol: add clipboard selection capability
Comment 2 Hans de Goede 2011-03-01 05:15:19 UTC
Review of attachment 43926 [details] [review]:

Looks good now, ACK.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.