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,10 +818,11 @@ lay_out_outputs_horizontally (App *app)
|
||||||
GnomeOutputInfo *output;
|
GnomeOutputInfo *output;
|
||||||
|
|
||||||
output = app->current_configuration->outputs[i];
|
output = app->current_configuration->outputs[i];
|
||||||
if (output->connected && output->on)
|
if (output->connected && output->on) {
|
||||||
output->x = x;
|
output->x = x;
|
||||||
|
output->y = 0;
|
||||||
x += output->width;
|
x += output->width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Second pass, all the black screens */
|
/* Second pass, all the black screens */
|
||||||
|
@ -831,10 +832,11 @@ lay_out_outputs_horizontally (App *app)
|
||||||
GnomeOutputInfo *output;
|
GnomeOutputInfo *output;
|
||||||
|
|
||||||
output = app->current_configuration->outputs[i];
|
output = app->current_configuration->outputs[i];
|
||||||
if (!(output->connected && output->on))
|
if (!(output->connected && output->on)) {
|
||||||
output->x = x;
|
output->x = x;
|
||||||
|
output->y = 0;
|
||||||
x += output->width;
|
x += output->width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue