diff options
author | Adam Jackson <ajax@redhat.com> | 2008-12-08 17:40:07 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-12-10 11:31:28 -0500 |
commit | fe65f400ed16cb39db8c9518b9446f590c34db1a (patch) | |
tree | e670c23fd979f77e9872b9da35588b90cf84ad0e /randr | |
parent | cdcb516e561e2f65eb2fa523ca001c57674d5caf (diff) |
randr: use primary output for RRFirstOutput()
Diffstat (limited to 'randr')
-rw-r--r-- | randr/randr.c | 3 |
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]; |