[Spice-commits] spice/vd_agent.h

Hans de Goede jwrdegoede at kemper.freedesktop.org
Fri Jan 18 05:22:31 PST 2013

 spice/vd_agent.h |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 19198574adc0d23fa3fb6fcd9691ab40314978f3
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Thu Jan 10 15:14:44 2013 +0100

    vd_agent.h: add a VD_AGENT_CAP_SPARSE_MONITORS_CONFIG capability (rhbz#881072)
    Currently the agent expect a monitor config to be continuous. If the user has
    3 monitors (3 spice display windows) open and tries to disable the 2nd one,
    then instead of the 2nd one being closed, the 3th one ends up closed.
    To be able to fix this we need to be able to send a sparse monitor config
    to the agent. A monitor being disabled in such a sparse config is simply
    represented by its width and height being 0 in its VDAgentMonConfig.
    Since old versions of the agent won't be capable of dealing with such a
    0x0 sized monitor, this patch adds a new VD_AGENT_CAP_SPARSE_MONITORS_CONFIG
    capability to signal to the client that the agent understands this, and
    the client should only send sparse monitor configs to agents with this
    Signed-off-by: Hans de Goede <hdegoede at redhat.com>

diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index b05da3e..b71f7d9 100644
--- a/spice/vd_agent.h
+++ b/spice/vd_agent.h
@@ -98,6 +98,11 @@ typedef struct SPICE_ATTR_PACKED VDAgentFileXferDataMessage {
 } VDAgentFileXferDataMessage;
 typedef struct SPICE_ATTR_PACKED VDAgentMonConfig {
+    /*
+     * Note a width and height of 0 can be used to indicate a disabled
+     * monitor, this may only be used with agents with the
+     */
     uint32_t height;
     uint32_t width;
     uint32_t depth;
@@ -199,6 +204,7 @@ enum {

More information about the Spice-commits mailing list