feat: set monitor resolution without vdagent in guest

This commit is contained in:
Rafael Gieschke 2026-05-26 14:53:54 +02:00
parent e3ebd242e9
commit 9a595dc305
2 changed files with 7 additions and 0 deletions

View File

@ -82,6 +82,9 @@ data_to_read:
if (filter->discard_all) {
filter->result = AGENT_MSG_FILTER_DISCARD;
if (msg_header.type == VD_AGENT_MONITORS_CONFIG && filter->use_client_monitors_config) {
filter->result = AGENT_MSG_FILTER_MONITORS_CONFIG;
}
} else {
// default, easier to set once
filter->result = AGENT_MSG_FILTER_OK;

View File

@ -1168,6 +1168,10 @@ void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, const void
VDIChunkHeader *header;
AgentMsgFilterResult res;
agent_msg_filter_config(&reds->agent_dev->priv->write_filter, reds->config->agent_copypaste,
reds->config->agent_file_xfer,
reds_use_client_monitors_config(reds));
res = agent_msg_filter_process_data(&dev->priv->write_filter,
static_cast<const uint8_t *>(message), size);
switch (res) {