summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-10-28 14:20:11 +0200
committerHans de Goede <hdegoede@redhat.com>2011-10-28 14:20:11 +0200
commita34ea63067b5d7951f23bb2d29b54e8d179b2abf (patch)
treeb09f9b3e716ff0bd58249112261b84953acb69fe
parent0bba419dad51960fef6bc67742860b870041f808 (diff)
vdagentd: Revert part of 571948ffb78eddd3015c456d084e0ca941f3e45d (rhbz#748760)
The part of this commit which avoided forwarding monitor info to the per X11 session agent process breaks resolution sync when using a multi monitor client with a single monitor guest. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--src/vdagentd.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/vdagentd.c b/src/vdagentd.c
index 3419601..1193567 100644
--- a/src/vdagentd.c
+++ b/src/vdagentd.c
@@ -121,14 +121,6 @@ static void do_client_monitors(struct vdagent_virtio_port *vport, int port_nr,
vdagentd_write_xorg_conf(new_monitors, logfile);
- if (new_monitors->num_of_monitors != 1) {
- /* No use in sending this to the session agent it cannot handle it
- anyways */
- free(mon_config);
- mon_config = NULL;
- goto ack;
- }
-
if (!mon_config ||
mon_config->num_of_monitors != new_monitors->num_of_monitors) {
free(mon_config);
@@ -144,7 +136,6 @@ static void do_client_monitors(struct vdagent_virtio_port *vport, int port_nr,
udscs_server_write_all(server, VDAGENTD_MONITORS_CONFIG, 0, 0,
(uint8_t *)mon_config, size);
-ack:
/* Acknowledge reception of monitors config to spice server / client */
reply.type = VD_AGENT_MONITORS_CONFIG;
reply.error = VD_AGENT_SUCCESS;