summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2019-01-09 11:33:18 +0100
committerMichel Dänzer <michel@daenzer.net>2019-01-09 11:39:56 +0100
commit38db1bbcfc019c92884c7819a6630c70e543f6b2 (patch)
tree8a5175ec36ff3c7332ef72ed35e153c5389708b2 /src/drmmode_display.c
parent803f872f7d4b2d80be434bb42ce64dfd295b122c (diff)
Only call drmmode_uevent_init if RandR is enabled
There's no point in listening for hotplug events if RandR is disabled, as there's no other mechanism for them to be propagated. We were already mostly ignoring them in that case. Inspired by https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/commit/1a489142c8e6a4828348cc9afbd0f430d3b1e2d8 (via https://bugs.freedesktop.org/109230#c11). Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index d433e061..e04a17d5 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -3273,7 +3273,7 @@ restart_destroy:
/* Check to see if a lessee has disappeared */
drmmode_validate_leases(scrn);
- if (changed && dixPrivateKeyRegistered(rrPrivKey)) {
+ if (changed) {
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0)
RRSetChanged(xf86ScrnToScreen(scrn));
#else