+
+ /* don't set use_xidle_extension unless it is explicitly specified */
+ if ((s = get_string_resource ("xidleExtension", "Boolean")))
+ p->use_xidle_extension = get_boolean_resource ("xidleExtension","Boolean");
+ else
+#ifdef HAVE_XIDLE_EXTENSION /* pick a default */
+ p->use_xidle_extension = True; /* if we have it, use it */
+#else /* !HAVE_XIDLE_EXTENSION */
+ p->use_xidle_extension = False;
+#endif /* !HAVE_XIDLE_EXTENSION */
+ if (s) free (s);
+
+ /* don't set use_mit_extension unless it is explicitly specified */
+ if ((s = get_string_resource ("mitSaverExtension", "Boolean")))
+ p->use_mit_saver_extension = get_boolean_resource ("mitSaverExtension",
+ "Boolean");
+ else
+#ifdef HAVE_MIT_SAVER_EXTENSION /* pick a default */
+ p->use_mit_saver_extension = False; /* Default false, because it sucks */
+#else /* !HAVE_MIT_SAVER_EXTENSION */
+ p->use_mit_saver_extension = False;
+#endif /* !HAVE_MIT_SAVER_EXTENSION */
+ if (s) free (s);
+
+
+ /* don't set use_mit_extension unless it is explicitly specified */
+ if ((s = get_string_resource ("sgiSaverExtension", "Boolean")))
+ p->use_sgi_saver_extension = get_boolean_resource ("sgiSaverExtension",
+ "Boolean");
+ else
+#ifdef HAVE_SGI_SAVER_EXTENSION /* pick a default */
+ p->use_sgi_saver_extension = True; /* if we have it, use it */
+#else /* !HAVE_SGI_SAVER_EXTENSION */
+ p->use_sgi_saver_extension = False;
+#endif /* !HAVE_SGI_SAVER_EXTENSION */
+ if (s) free (s);
+
+
+ /* Throttle the various timeouts to reasonable values.
+ */
+#ifndef NO_LOCKING
+ if (p->passwd_timeout == 0) p->passwd_timeout = 30000; /* 30 secs */
+#endif
+ if (p->timeout < 10000) p->timeout = 10000; /* 10 secs */
+ if (p->cycle != 0 && p->cycle < 2000) p->cycle = 2000; /* 2 secs */
+ if (p->pointer_timeout == 0) p->pointer_timeout = 5000; /* 5 secs */
+ if (p->notice_events_timeout == 0)
+ p->notice_events_timeout = 10000; /* 10 secs */
+ if (p->fade_seconds == 0 || p->fade_ticks == 0)
+ p->fade_p = False;
+ if (! p->fade_p) p->unfade_p = False;
+
+ p->watchdog_timeout = p->cycle;
+ if (p->watchdog_timeout < 30000) p->watchdog_timeout = 30000; /* 30 secs */
+ if (p->watchdog_timeout > 3600000) p->watchdog_timeout = 3600000; /* 1 hr */