From 9281a911cf86eda6e2b0e2d142d062d1d0d05e16 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sun, 31 May 2009 13:52:26 -0500 Subject: [PATCH] Fix the layout-outputs-horizontally helper The horizontal coordinate was not always being updated. Also, ensure that outputs are at y=0. Signed-off-by: Federico Mena Quintero --- capplets/display/xrandr-capplet.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index e96689959..015feaf9a 100644 --- a/capplets/display/xrandr-capplet.c +++ b/capplets/display/xrandr-capplet.c @@ -818,10 +818,11 @@ lay_out_outputs_horizontally (App *app) GnomeOutputInfo *output; output = app->current_configuration->outputs[i]; - if (output->connected && output->on) + if (output->connected && output->on) { output->x = x; - - x += output->width; + output->y = 0; + x += output->width; + } } /* Second pass, all the black screens */ @@ -831,10 +832,11 @@ lay_out_outputs_horizontally (App *app) GnomeOutputInfo *output; output = app->current_configuration->outputs[i]; - if (!(output->connected && output->on)) + if (!(output->connected && output->on)) { output->x = x; - - x += output->width; + output->y = 0; + x += output->width; + } } }