From 4de5705545792d77c9990bbec3e263a517757a2a Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 30 Jan 2009 20:17:10 -0800 Subject: 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 --- randr/randr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'randr/randr.c') 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++) -- cgit v1.2.3