diff options
author | Keith Packard <keithp@keithp.com> | 2009-01-30 20:17:10 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-01-30 20:21:28 -0800 |
commit | 4de5705545792d77c9990bbec3e263a517757a2a (patch) | |
tree | e89fd28dad7edf1a1151836ed56495ecf354537e /randr/randr.c | |
parent | f716e3f3445d443cbc6507d27f806e9ad387120a (diff) |
RandR crtcs not fetched correctly when primary output is set.
Primary outputs may not have a CRTC.
Loops fetching CRTCs respecting primary output were broken.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'randr/randr.c')
-rw-r--r-- | randr/randr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/randr.c b/randr/randr.c index b7c44f7ec..07dd9e917 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -436,7 +436,7 @@ RRFirstOutput (ScreenPtr pScreen) RROutputPtr output; int i, j; - if (pScrPriv->primaryOutput) + if (pScrPriv->primaryOutput && pScrPriv->primaryOutput->crtc) return pScrPriv->primaryOutput; for (i = 0; i < pScrPriv->numCrtcs; i++) |