mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
MonitorConfig: fix hole filling in the laptop lid automatic configuration
Need two passes, because the order we traverse the array is alphabetical on connector name, not left to right, so we might see a monitor on the right before we get the offset from disabling the primary monitor. https://bugzilla.gnome.org/show_bug.cgi?id=707473
This commit is contained in:
parent
d25275fa8d
commit
cc0b093f7a
@ -946,9 +946,12 @@ make_laptop_lid_config (MetaConfiguration *reference)
|
||||
y_offset = current_output->rect.height;
|
||||
}
|
||||
else
|
||||
new->outputs[i] = *current_output;
|
||||
}
|
||||
for (i = 0; i < new->n_outputs; i++)
|
||||
{
|
||||
if (new->outputs[i].enabled)
|
||||
{
|
||||
new->outputs[i] = *current_output;
|
||||
|
||||
if (new->outputs[i].rect.x > x_after)
|
||||
new->outputs[i].rect.x -= x_offset;
|
||||
if (new->outputs[i].rect.y > y_after)
|
||||
|
Loading…
Reference in New Issue
Block a user