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:
parent
04e1f4463f
commit
9281a911cf
1 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue