summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-08-05 16:21:19 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-08-05 16:22:53 +0100
commitc5e654cf2afcafbe3732548359771747dac1ce26 (patch)
tree0dd95a1b6be574ca483565e29df01dcb5f565f11 /src/sna/sna_driver.c
parent999c8dc700a0573859ec1aaae4500493d01d0c0c (diff)
sna: Set the RandR primary output from the option
If the user specifies the Option "Primary" for a monitor, we need to set it as the RandR primary output. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82193
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 5e541253..322e9514 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -272,6 +272,8 @@ static Bool sna_create_screen_resources(ScreenPtr screen)
return FALSE;
}
+ sna_mode_set_primary(sna);
+
/* Only preserve the fbcon, not any subsequent server regens */
if (serverGeneration == 1 && (sna->flags & SNA_IS_HOSTED) == 0)
sna_copy_fbcon(sna);