From d694739b214853f19ab1a0df27e49b5417946b70 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 10 Sep 2012 18:26:29 +0300 Subject: server: Filter VD_AGENT_MONITORS_CONFIG If the guest supports client monitors config we pass it the VDAgentMonitorsConfig message via the QXLInterface::client_monitors_config api instead of via the vdagent. --- server/agent-msg-filter.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/agent-msg-filter.c') diff --git a/server/agent-msg-filter.c b/server/agent-msg-filter.c index 7584b52f..b48dd765 100644 --- a/server/agent-msg-filter.c +++ b/server/agent-msg-filter.c @@ -24,6 +24,7 @@ #include #include "red_common.h" #include "agent-msg-filter.h" +#include "red_dispatcher.h" void agent_msg_filter_init(struct AgentMsgFilter *filter, int copy_paste, int discard_all) @@ -80,6 +81,13 @@ data_to_read: filter->result = AGENT_MSG_FILTER_DISCARD; } break; + case VD_AGENT_MONITORS_CONFIG: + if (red_dispatcher_use_client_monitors_config()) { + filter->result = AGENT_MSG_FILTER_MONITORS_CONFIG; + } else { + filter->result = AGENT_MSG_FILTER_OK; + } + break; default: filter->result = AGENT_MSG_FILTER_OK; } -- cgit