sna: Use default monitor options on the first output

commit 6554cf0a69
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Aug 11 12:22:17 2014 +0100

    sna: Parse output options early during initialisation

rearranged the monitor query to before the num_outputs increment. The
result was that it choose the second output as the default and not the
intended first.

Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=522500
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-09-12 07:46:43 +01:00
parent 9e397830f5
commit 1aefd16964
1 changed files with 1 additions and 1 deletions

View File

@ -3751,7 +3751,7 @@ sna_output_add(struct sna *sna, unsigned id, unsigned serial)
output->name = (char *)(output + 1);
memcpy(output->name, name, len + 1);
output->use_screen_monitor = config->num_output != 1;
output->use_screen_monitor = config->num_output != 0;
xf86OutputUseScreenMonitor(output, !output->use_screen_monitor);
assert(output->options);