summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--randr/randr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/randr/randr.c b/randr/randr.c
index a4f519888..3f94c2f6c 100644
--- a/randr/randr.c
+++ b/randr/randr.c
@@ -615,6 +615,10 @@ RRTellChanged(ScreenPtr pScreen)
primarysp = pScrPriv;
}
+ /* If there's no root window yet, can't send events */
+ if (!primary->root)
+ return;
+
xorg_list_for_each_entry(iter, &primary->secondary_list, secondary_head) {
pSecondaryScrPriv = rrGetScrPriv(iter);