mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-06 18:52:33 +00:00
feat: set monitor resolution without vdagent in guest
This commit is contained in:
parent
e3ebd242e9
commit
9a595dc305
@ -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;
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user