[Spice-devel] [PATCH spice 5/5] spicec: only send display-config if the agent can handle it
Arnon Gilboa
agilboa at redhat.com
Thu Oct 7 05:28:37 PDT 2010
ack, actually 2 bugfixes.
Hans de Goede wrote:
> ---
> 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 cf2ee35..61974b5 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();
>
More information about the Spice-devel
mailing list