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-10 11:31:28 -0500
commitfe65f400ed16cb39db8c9518b9446f590c34db1a (patch)
treee670c23fd979f77e9872b9da35588b90cf84ad0e
parentcdcb516e561e2f65eb2fa523ca001c57674d5caf (diff)
randr: use primary output for RRFirstOutput()
-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];