diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2019-01-09 11:26:14 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2019-01-09 16:09:16 +0100 |
commit | b1c01698f577577e4a88bad0ae08fb5d998e7ebb (patch) | |
tree | 4ad8187d481f5e60684460c812ae8b0ca5f96cf6 | |
parent | 38db1bbcfc019c92884c7819a6630c70e543f6b2 (diff) |
Only call drmmode_validate_leases if RandR is enabled
It would crash if RandR is disabled, e.g. because Xinerama is enabled.
Bugzilla: https://bugs.freedesktop.org/109230
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | src/drmmode_display.c | 3 |
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; } |