xf86-video-intel: src/sna/sna_display.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Sep 11 23:48:16 PDT 2014


 src/sna/sna_display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1aefd16964c30264c05d136cef3e1e7de5eb9c53
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Sep 12 07:46:43 2014 +0100

    sna: Use default monitor options on the first output
    
    commit 6554cf0a69f04710b64f3488384fe5cb2748dc35
    Author: Chris Wilson <chris at 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 at chris-wilson.co.uk>

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index f136c20..f6cfc80 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -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);
 


More information about the xorg-commit mailing list