summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-03-07 14:59:56 +0100
committerHans de Goede <hdegoede@redhat.com>2011-03-07 14:59:56 +0100
commitaca540ccae12fbc5194410accd71a5ab384473ce (patch)
treeb975a1f9ba3ae6fd149a2d369f45a46c99f5f8cd
parenta167b3f8945d07137c98d4ee6c2d512d5bc0cdbd (diff)
Allow changing the resolution through the agent on multi monitor setups
Rather then refusing to use the monitor config send by the client at all for multi monitor clients, simply take the info from the first monitor.
-rw-r--r--vdagent-x11.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vdagent-x11.c b/vdagent-x11.c
index 11e9c45..2bf5cd1 100644
--- a/vdagent-x11.c
+++ b/vdagent-x11.c
@@ -805,8 +805,7 @@ void vdagent_x11_set_monitor_config(struct vdagent_x11 *x11,
if (mon_config->num_of_monitors != 1) {
fprintf(x11->errfile,
- "Only 1 monitor supported, ignoring monitor config\n");
- return;
+ "Only 1 monitor supported, ignoring additional monitors\n");
}
sizes = XRRSizes(x11->display, x11->screen, &num_sizes);