summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drmmode_display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index e04a17d5..71f3539f 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -3100,7 +3100,8 @@ Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode,
}
/* Validate leases on VT re-entry */
- drmmode_validate_leases(pScrn);
+ if (dixPrivateKeyRegistered(rrPrivKey))
+ drmmode_validate_leases(pScrn);
return TRUE;
}