summaryrefslogtreecommitdiffstats
path: root/driver/prefs.c
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-16 10:21:16 +0200
committerSimon Rettberg2018-10-16 10:21:16 +0200
commit541cb14f1cf2d77f76b6cec665466a1685ff9b65 (patch)
tree1b9b3f8dc711c769eef0111e467e2424845ed5c1 /driver/prefs.c
parentUpdate gitignore (diff)
downloadxscreensaver-541cb14f1cf2d77f76b6cec665466a1685ff9b65.tar.gz
xscreensaver-541cb14f1cf2d77f76b6cec665466a1685ff9b65.tar.xz
xscreensaver-541cb14f1cf2d77f76b6cec665466a1685ff9b65.zip
Add ungrab command, respawn hack before password prompt
Diffstat (limited to 'driver/prefs.c')
-rw-r--r--driver/prefs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/prefs.c b/driver/prefs.c
index 8fb029e..6965ad9 100644
--- a/driver/prefs.c
+++ b/driver/prefs.c
@@ -265,6 +265,7 @@ static const char * const prefs[] = {
"helpURL", /* not saved */
"loadURL", /* not saved */
"newLoginCommand", /* not saved */
+ "externalUngrabCommand", /* not saved */
"nice",
"memoryLimit",
"fade",
@@ -805,6 +806,7 @@ write_init_file (Display *dpy,
CHECK("loadURL") continue; /* don't save */
/* CHECK("newLoginCommand") type = pref_str, s = p->new_login_command; */
CHECK("newLoginCommand") continue; /* don't save */
+ CHECK("externalUngrabCommand") continue; /* don't save */
CHECK("nice") type = pref_int, i = p->nice_inferior;
CHECK("memoryLimit") type = pref_byte, i = p->inferior_memory_limit;
CHECK("fade") type = pref_bool, b = p->fade_p;
@@ -1104,6 +1106,9 @@ load_init_file (Display *dpy, saver_preferences *p)
p->new_login_command = get_string_resource(dpy,
"newLoginCommand",
"NewLoginCommand");
+ p->external_ungrab_command = get_string_resource(dpy,
+ "externalUngrabCommand",
+ "ExternalUngrabCommand");
p->auth_warning_slack = get_integer_resource(dpy, "authWarningSlack",
"Integer");