[Spice-commits] server/reds.cpp
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Sep 17 05:44:16 UTC 2020
server/reds.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d1bea580023285034fc42a1f5a820d64f6886934
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Wed Sep 16 19:11:06 2020 +0400
reds: fix vdagent monitor flag filtering
Fixes commit 828c881bd0a8d73a5c2038bdf22cb8ae7c793482 ("agent/qxl: add
monitors physical dimensions handling").
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/reds.cpp b/server/reds.cpp
index 803f546f..fd3632f0 100644
--- a/server/reds.cpp
+++ b/server/reds.cpp
@@ -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);
}
More information about the Spice-commits
mailing list