summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-21 20:00:56 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-21 21:07:46 +0100
commit00d9396f6bf0bbbdfca7cdb1cbdbde8f0b2ad59c (patch)
treea3e4e8e0bfc104e010876ecd5c19df977b21f0c6
parent5168a160a1385c23d275d616f2649d5cae7c15d9 (diff)
sna: Fix attachment of the default monitor to the first output
Broke during code motion in commit add84cd8a8dc6d285912d0ea3a3a3e7faa9e0942 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri May 2 13:21:02 2014 +0100 sna: Perform dynamic connector discovery Reported-and-tested-by: Jay Little <jaylittle@jaylittle.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79015 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 69d42b75..63631efe 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -2926,8 +2926,8 @@ sna_output_add(struct sna *sna, int id, int serial)
output->name = (char *)(output + 1);
memcpy(output->name, name, len + 1);
- output->use_screen_monitor = config->num_output;
- xf86OutputUseScreenMonitor(output, !config->num_output);
+ output->use_screen_monitor = config->num_output != 1;
+ xf86OutputUseScreenMonitor(output, !output->use_screen_monitor);
sna_output->id = compat_conn.conn.connector_id;
sna_output->is_panel = is_panel(compat_conn.conn.connector_type);