From 4ad38278f3a1a44ecded4307252672d9265134ee Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 27 Nov 2002 19:39:26 +0000 Subject: Only try to setup moused(8) before setting up the X server if WITH_MICE is defined. Approved by: re --- usr.sbin/sade/config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.sbin/sade/config.c') diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 5075f48..8a3b30f 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -650,7 +650,9 @@ int configXSetup(dialogMenuItem *self) { char *config, *execfile, *execcmd, *style, *tmp; +#ifdef WITH_MICE char *moused; +#endif WINDOW *w = savescr(); setenv("XWINHOME", "/usr/X11R6", 1); @@ -697,6 +699,7 @@ tryagain: *tmp = '\0'; if (file_executable(execfile)) { free(execfile); +#ifdef WITH_MICE moused = variable_get(VAR_MOUSED); while (!moused || strcmp(moused, "YES")) { if (msgYesNo("The X server may access the mouse in two ways: direct access\n" @@ -714,6 +717,7 @@ tryagain: "Choose \"/dev/sysmouse\" as the mouse port and \"SysMouse\" or\n" "\"MouseSystems\" as the mouse protocol in the X configuration\n" "utility."); +#endif Mkdir("/etc/X11"); /* XXX:Remove this later after we are happy mtree will have created this for us. */ systemExecute(execcmd); if (!file_readable("/etc/X11/XF86Config")) { -- cgit v1.1