mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 02:10:07 +01:00
Allow relative positions to use output names or monitor identifiers.
Previous version used monitor identifiers if present, otherwise output names. That caused existing working configurations to break when additional information was added to the configuration file.
This commit is contained in:
parent
843077f23a
commit
3f5cedf00a
1 changed files with 9 additions and 5 deletions
|
|
@ -879,13 +879,17 @@ xf86InitialOutputPositions (ScrnInfoPtr scrn, DisplayModePtr *modes)
|
|||
{
|
||||
xf86OutputPtr out_rel = config->output[or];
|
||||
XF86ConfMonitorPtr rel_mon = out_rel->conf_monitor;
|
||||
char *name;
|
||||
|
||||
if (rel_mon)
|
||||
name = rel_mon->mon_identifier;
|
||||
else
|
||||
name = out_rel->name;
|
||||
if (!strcmp (relative_name, name))
|
||||
{
|
||||
if (xf86nameCompare (rel_mon->mon_identifier,
|
||||
relative_name) == 0)
|
||||
{
|
||||
relative = config->output[or];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (strcmp (out_rel->name, relative_name) == 0)
|
||||
{
|
||||
relative = config->output[or];
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue