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:
parent
9e397830f5
commit
1aefd16964
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue