summaryrefslogtreecommitdiffstats
path: root/server/agent-msg-filter.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-09-10 18:26:29 +0300
committerAlon Levy <alevy@redhat.com>2012-09-13 14:47:32 +0300
commitd694739b214853f19ab1a0df27e49b5417946b70 (patch)
treee2011b08dfe3bb939f9dc0b88bbbbba4ca56d4ef /server/agent-msg-filter.c
parent4338968aad68a84b62d7946b50ecd3d391a66571 (diff)
downloadspice-d694739b214853f19ab1a0df27e49b5417946b70.tar.gz
spice-d694739b214853f19ab1a0df27e49b5417946b70.tar.xz
spice-d694739b214853f19ab1a0df27e49b5417946b70.zip
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.
Diffstat (limited to 'server/agent-msg-filter.c')
-rw-r--r--server/agent-msg-filter.c8
1 files changed, 8 insertions, 0 deletions
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 <string.h>
#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;
}