summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/amdgpu_kms.c4
-rw-r--r--src/drmmode_display.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 4cd46f2..47e2170 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -318,13 +318,13 @@ static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen)
RROutputChanged(rrScrPriv->primaryOutput, FALSE);
rrScrPriv->layoutChanged = TRUE;
}
+
+ drmmode_uevent_init(pScrn, &info->drmmode);
}
if (!drmmode_set_desired_modes(pScrn, &info->drmmode, pScreen->isGPU))
return FALSE;
- drmmode_uevent_init(pScrn, &info->drmmode);
-
if (info->shadow_fb) {
pixmap = pScreen->GetScreenPixmap(pScreen);
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index fdadf89..85a0270 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -3907,7 +3907,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