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 <federico@novell.com>
This commit is contained in:
Federico Mena Quintero 2009-05-31 13:52:26 -05:00
parent 04e1f4463f
commit 9281a911cf

View file

@ -818,11 +818,12 @@ 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;
output->y = 0;
x += output->width;
}
}
/* Second pass, all the black screens */
@ -831,11 +832,12 @@ 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;
output->y = 0;
x += output->width;
}
}
}