diff options
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r-- | src/sna/sna_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 772c8360..90414c74 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -5924,7 +5924,7 @@ sna_mode_set_primary(struct sna *sna) rrScrPrivPtr rr = rrGetScrPriv(xf86ScrnToScreen(sna->scrn)); int i; - if (rr->primaryOutput) + if (rr == NULL || rr->primaryOutput) return; for (i = 0; i < sna->mode.num_real_output; i++) { |