mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-06 21:12:12 +00:00
reds: fix vdagent monitor flag filtering
Fixes commit 828c881bd0a8d73a5c2038bdf22cb8ae7c793482 ("agent/qxl: add
monitors physical dimensions handling").
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
f1e89573b6
commit
d1bea58002
@ -1143,8 +1143,8 @@ static void reds_on_main_agent_monitors_config(RedsState *reds,
|
||||
}
|
||||
monitors_config = (VDAgentMonitorsConfig *)(cmc->buffer + sizeof(*msg_header));
|
||||
/* filter out not known flags */
|
||||
monitors_config->flags &= ~(VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS |
|
||||
VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE);
|
||||
monitors_config->flags &= VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS |
|
||||
VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE;
|
||||
if ((monitors_config->flags & VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE) != 0) {
|
||||
monitor_size += sizeof(VDAgentMonitorMM);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user