dri2: restore Screen->ConfigNotify on close
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 7 Jun 2011 19:22:15 +0000 (21:22 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 30 Jun 2011 06:38:23 +0000 (16:38 +1000)
commitb573cdd40ee49fae299fe2e7cbd02159ae8ae617
tree8a90734a7e154d40aac82aaaf8b754f37dbbdf40
parent9d568450b1319e9057319ebb37e76003bcba447d
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 <marcin.slusarz@gmail.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
hw/xfree86/dri2/dri2.c