From 18832f4ca7947d26acf965873d0dac895ce0a867 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 28 Nov 1989 11:51:29 +0000 Subject: add resetSaver support --- zwgc/X_gram.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zwgc/X_gram.c') 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; -- cgit v1.2.3