summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/config.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-27 19:39:26 +0000
committerjhb <jhb@FreeBSD.org>2002-11-27 19:39:26 +0000
commit4ad38278f3a1a44ecded4307252672d9265134ee (patch)
treead3281da9d5cf46518dd5a23eebcf8061337eed3 /usr.sbin/sade/config.c
parent045f25753aa468cf2387d350ee1c589776a65334 (diff)
downloadFreeBSD-src-4ad38278f3a1a44ecded4307252672d9265134ee.zip
FreeBSD-src-4ad38278f3a1a44ecded4307252672d9265134ee.tar.gz
Only try to setup moused(8) before setting up the X server if WITH_MICE is
defined. Approved by: re
Diffstat (limited to 'usr.sbin/sade/config.c')
-rw-r--r--usr.sbin/sade/config.c4
1 files changed, 4 insertions, 0 deletions
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")) {
OpenPOWER on IntegriCloud