From b573cdd40ee49fae299fe2e7cbd02159ae8ae617 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Tue, 7 Jun 2011 21:22:15 +0200 Subject: [PATCH] dri2: restore Screen->ConfigNotify on close ConfigNotify is set by DRI2ScreenInit, but not restored to previous state on close. Fix it. (I'm preparing a patch for xf86-video-nouveau which detects GPU lockup after dri2 init and it needs to reinitialize dri2) Signed-off-by: Marcin Slusarz Reviewed-by: Daniel Stone Signed-off-by: Peter Hutterer --- hw/xfree86/dri2/dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c index bf7ebb9f8..af3bcaefe 100644 --- a/hw/xfree86/dri2/dri2.c +++ b/hw/xfree86/dri2/dri2.c @@ -1185,6 +1185,7 @@ void DRI2CloseScreen(ScreenPtr pScreen) { DRI2ScreenPtr ds = DRI2GetScreen(pScreen); + pScreen->ConfigNotify = ds->ConfigNotify; free(ds->driverNames); free(ds);