summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-12-08 17:40:07 -0500
committerAdam Jackson <ajax@redhat.com>2008-12-16 09:55:20 -0500
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 230d816a3..2e482f038 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];