From d33adcdf03c69407d151e732fa0cf9947151eb19 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 15 Jan 2010 15:22:02 +1000 Subject: dix: move config_init into the DDX. The only DDX currently using hotplugging is the xfree86 one and it looks like it'll stay that way for a bit. Move the initialization to the DDX, since Xephyr, Xnest, and friends don't need HAL or udev notifications. Add CloseInput (counterpart to InitInput) to be able to clean up the config initialization from the DDX as well. Signed-off-by: Peter Hutterer Reviewed-by: Julien Cristau Reviewed-by: Dan Nicholson --- dix/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dix/main.c') diff --git a/dix/main.c b/dix/main.c index da910fe4b..f0235364f 100644 --- a/dix/main.c +++ b/dix/main.c @@ -257,7 +257,6 @@ int main(int argc, char *argv[], char *envp[]) InitCoreDevices(); InitInput(argc, argv); InitAndStartDevices(); - config_init(); dixSaveScreens(serverClient, SCREEN_SAVER_FORCER, ScreenSaverReset); @@ -305,7 +304,7 @@ int main(int argc, char *argv[], char *envp[]) FreeAllResources(); #endif - config_fini(); + CloseInput(); memset(WindowTable, 0, sizeof(WindowTable)); CloseDownDevices(); -- cgit v1.2.3