summaryrefslogtreecommitdiff
path: root/randr/randr.c
diff options
context:
space:
mode:
Diffstat (limited to 'randr/randr.c')
-rw-r--r--randr/randr.c2
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++)