diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-10-06 20:00:54 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-10-06 20:13:01 +0200 |
commit | 1e34c14c64f1149fa5c30302d62442d7ce7c79b2 (patch) | |
tree | 8eb37d340f1cbf68d97cb2cc1a67a00e69b36515 /client | |
parent | ab8bac36bd0d5a399b76c9266ff1c752e28f7bd7 (diff) | |
download | spice-1e34c14c64f1149fa5c30302d62442d7ce7c79b2.tar.gz spice-1e34c14c64f1149fa5c30302d62442d7ce7c79b2.tar.xz spice-1e34c14c64f1149fa5c30302d62442d7ce7c79b2.zip |
spicec: only send display-config if the agent can handle it
Diffstat (limited to 'client')
-rw-r--r-- | client/red_client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp index cf2ee354..61974b57 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -1013,7 +1013,8 @@ void RedClient::handle_agent_connected(RedPeer::InMessage* message) send_agent_monitors_config(); } - if (!_agent_disp_config_sent) { + if (VD_AGENT_HAS_CAPABILITY(_agent_caps, _agent_caps_size, + VD_AGENT_CAP_DISPLAY_CONFIG) && !_agent_disp_config_sent) { send_agent_display_config(); } } @@ -1038,7 +1039,7 @@ void RedClient::on_agent_announce_capabilities( memcpy(_agent_caps, caps->caps, sizeof(_agent_caps[0]) * caps_size); if (VD_AGENT_HAS_CAPABILITY(caps->caps, caps_size, - VD_AGENT_DISPLAY_CONFIG)) { + VD_AGENT_CAP_DISPLAY_CONFIG)) { // not sending the color depth through send_agent_monitors_config, since // it applies only for attached screens. send_agent_display_config(); |