]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xenconfig: fix spice mousemode and copypaste
authorJim Fehlig <jfehlig@suse.com>
Thu, 23 Apr 2015 23:00:26 +0000 (17:00 -0600)
committerJim Fehlig <jfehlig@suse.com>
Mon, 18 May 2015 18:46:16 +0000 (12:46 -0600)
commita5b55bd93106b8e678964f1dbf363dca3af76286
treef86704f69c2abbb46cb2325ad40a0c857c6ebeca
parenta460295f4e3b1e21354bc8035eb761b9bc2bf3fa
xenconfig: fix spice mousemode and copypaste

From xl.cfg950 man page:

spiceagent_mouse=BOOLEAN
Whether SPICE agent is used for client mouse mode. The default is
true (1) (turn on)

spicevdagent=BOOLEAN
Enables spice vdagent. The Spice vdagent is an optional component for
enhancing user experience and performing guest-oriented management
tasks. Its features includes: client mouse mode (no need to grab
mouse by client, no mouse lag), automatic adjustment of screen
resolution, copy and paste (text and image) between client and domU.
It also requires vdagent service installed on domU o.s. to work.
The default is 0.

spice_clipboard_sharing=BOOLEAN
Enables Spice clipboard sharing (copy/paste). It requires spicevdagent
enabled. The default is false (0).

So if spiceagent_mouse is enabled (client mouse mode) or
spice_clipboard_sharing is enabled, spicevdagent must be enabled.
Along with this change, s/spicedvagent/spicevdagent, set
spiceagent_mouse correctly, and add a test for these spice
features.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/xenconfig/xen_xl.c
tests/xlconfigdata/test-spice-features.cfg [new file with mode: 0644]
tests/xlconfigdata/test-spice-features.xml [new file with mode: 0644]
tests/xlconfigdata/test-spice.xml
tests/xlconfigtest.c