diff options
Diffstat (limited to 'src/common_drm.c')
-rw-r--r-- | src/common_drm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common_drm.c b/src/common_drm.c index 0771b49..4ab4968 100644 --- a/src/common_drm.c +++ b/src/common_drm.c @@ -918,9 +918,6 @@ Bool common_drm_PreScreenInit(ScreenPtr pScreen) xf86SetBackingStore(pScreen); xf86SetSilkenMouse(pScreen); - drm->CloseScreen = pScreen->CloseScreen; - pScreen->CloseScreen = common_drm_CloseScreen; - return TRUE; } @@ -971,6 +968,9 @@ Bool common_drm_PostScreenInit(ScreenPtr pScreen) drm->hw_cursor = FALSE; } + drm->CloseScreen = pScreen->CloseScreen; + pScreen->CloseScreen = common_drm_CloseScreen; + if (!xf86CrtcScreenInit(pScreen)) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "[drm] failed to initialize screen\n"); |