summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-12-08 22:40:07 (GMT)
committerAdam Jackson <ajax@redhat.com>2008-12-16 14:55:20 (GMT)
commit2bc53ce66828b6c177e3298fa2f326c77c93e136 (patch)
tree5dd9a170910dfb40486476f69c5cfba2b6b46127
parentf0234a9eb88ed103bca7db73a833c472ab95b48f (diff)
randr: use primary output for RRFirstOutput()
(cherry picked from commit fe65f400ed16cb39db8c9518b9446f590c34db1a)
-rw-r--r--randr/randr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/randr/randr.c b/randr/randr.c
index 230d816..2e482f0 100644
--- a/randr/randr.c
+++ b/randr/randr.c
@@ -438,6 +438,9 @@ RRFirstOutput (ScreenPtr pScreen)
RROutputPtr output;
int i, j;
+ if (pScrPriv->primaryOutput)
+ return pScrPriv->primaryOutput;
+
for (i = 0; i < pScrPriv->numCrtcs; i++)
{
RRCrtcPtr crtc = pScrPriv->crtcs[i];