diff options
author | John Kohl <jtkohl@mit.edu> | 1989-11-28 11:51:29 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1989-11-28 11:51:29 +0000 |
commit | 18832f4ca7947d26acf965873d0dac895ce0a867 (patch) | |
tree | c19aa61d3e8bed8ab3b735fff4b8d425f7e49722 /zwgc/X_gram.c | |
parent | 9a96ce25cd0511d6f0889ad0f255da86aa17a4d2 (diff) |
add resetSaver support
Diffstat (limited to 'zwgc/X_gram.c')
-rw-r--r-- | zwgc/X_gram.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zwgc/X_gram.c b/zwgc/X_gram.c index 46e6af6..6438d92 100644 --- a/zwgc/X_gram.c +++ b/zwgc/X_gram.c @@ -44,6 +44,7 @@ int internal_border_width = 2; unsigned long default_fgcolor; unsigned long default_bgcolor; unsigned long default_bordercolor; +static int reset_saver; static int border_width = 1; static int cursor_code = XC_sailboat; static char *title_name,*icon_name; @@ -114,6 +115,7 @@ void x_gram_init(dpy) default_bordercolor = x_string_to_color(temp,default_bordercolor); reverse_stack = get_bool_resource("reverseStack", "ReverseStack", 0); + reset_saver = get_bool_resource("resetSaver", "ResetSaver", 1); temp = get_string_resource("borderWidth", "BorderWidth"); /* <<<>>> */ @@ -232,6 +234,9 @@ void x_gram_create(dpy, gram, xalign, yalign, xpos, ypos, xsize, ysize, while (beepcount--) XBell(dpy, 0); + if (reset_saver) + XResetScreenSaver(dpy); + if (reverse_stack) { if (bottom_gram) { XWindowChanges winchanges; |