X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fprefs.c;h=e191314292ad6aaa599d17099f4082b74b8992f5;hp=306e694a09a1fc5453c52a5e82a3b7e1e913bc20;hb=551b3de3f619c04c2dd1971ee9b3f02e270c28c9;hpb=c31d10b6605cd8dc1a7b61fef4256f06198767e5 diff --git a/driver/prefs.c b/driver/prefs.c index 306e694a..e1913142 100644 --- a/driver/prefs.c +++ b/driver/prefs.c @@ -174,6 +174,7 @@ static const char * const prefs[] = { "sgiSaverExtension", "mitSaverExtension", "xidleExtension", + "procInterrupts", "overlayStderr", "overlayTextBackground", /* not saved -- X resources only */ "overlayTextForeground", /* not saved -- X resources only */ @@ -633,6 +634,7 @@ write_init_file (saver_preferences *p, const char *version_string) CHECK("sgiSaverExtension")type = pref_bool, b=p->use_sgi_saver_extension; CHECK("mitSaverExtension")type = pref_bool, b=p->use_mit_saver_extension; CHECK("xidleExtension") type = pref_bool, b = p->use_xidle_extension; + CHECK("procInterrupts") type = pref_bool, b = p->use_proc_interrupts; CHECK("overlayStderr") type = pref_bool, b = overlay_stderr_p; CHECK("overlayTextBackground") continue; /* don't save */ CHECK("overlayTextForeground") continue; /* don't save */ @@ -792,12 +794,12 @@ load_init_file (saver_preferences *p) "Boolean"); p->use_sgi_saver_extension = get_boolean_resource ("sgiSaverExtension", "Boolean"); + p->use_proc_interrupts = get_boolean_resource ("procInterrupts", "Boolean"); /* Throttle the various timeouts to reasonable values. */ if (p->passwd_timeout <= 0) p->passwd_timeout = 30000; /* 30 secs */ if (p->timeout < 10000) p->timeout = 10000; /* 10 secs */ - if (p->cycle < 0) p->cycle = 0; 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)