summaryrefslogtreecommitdiff
path: root/src/sna/sna_display_fake.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-20 18:50:40 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-21 10:07:00 +0000
commit7d9edc9a717cfc6fbdbe468f7e32a68ac674a207 (patch)
treee53d56e547be6002663aba4b0ccc28673bd82a0a /src/sna/sna_display_fake.c
parentc79cb18407273dc7798618390bd0b7d69b0f80d6 (diff)
sna: Set supported rotations on virtual outputs
As the virtual outputs are created later, they do not get automatically populated with RR properties and we must do that instantiation ourselves. Reported-by: Kirill Müller <mail@kirill-mueller.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71846 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_display_fake.c')
-rw-r--r--src/sna/sna_display_fake.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_display_fake.c b/src/sna/sna_display_fake.c
index fd1419b6..29426b76 100644
--- a/src/sna/sna_display_fake.c
+++ b/src/sna/sna_display_fake.c
@@ -299,6 +299,9 @@ static bool add_fake_output(struct sna *sna, bool late)
!RROutputSetClones(output->randr_output, clones, j))
goto err;
}
+
+ RRCrtcSetRotations(crtc->randr_crtc,
+ RR_Rotate_All | RR_Reflect_All);
} else {
mask = (1 << ++sna->mode.num_fake) - 1;
output->possible_crtcs = mask << sna->mode.num_real_crtc;