/* xset.c --- interacting with server extensions and the builtin screensaver.
- * xscreensaver, Copyright (c) 1991-1998 Jamie Zawinski <jwz@netscape.com>
+ * xscreensaver, Copyright (c) 1991-1998 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
#include "xscreensaver.h"
+#ifdef _VROOT_H_
+ERROR! You must not include vroot.h in this file.
+#endif
+
\f
/* MIT SCREEN-SAVER server extension hackery.
*/
fprintf (stderr,
"%s: SGI SCREEN_SAVER extension exists, but can't be initialized;\n\
perhaps some other screensaver program is already running?\n",
- progname);
+ blurb());
p->use_sgi_saver_extension = False;
return;
}
desired_allow_exp != current_allow_exp)
{
if (desired_server_timeout == 0)
- printf ("%s%sisabling server builtin screensaver.\n\
- You can re-enable it with \"xset s on\".\n",
- (p->verbose_p ? "" : progname),
+ fprintf (stderr,
+ "%s%sisabling server builtin screensaver.\n"
+ "\tYou can re-enable it with \"xset s on\".\n",
+ (p->verbose_p ? "" : blurb()),
(p->verbose_p ? "\n\tD" : ": d"));
if (p->verbose_p)
- fprintf (stderr, "%s: (xset s %d %d %s %s)\n", progname,
+ fprintf (stderr, "%s: (xset s %d %d %s %s)\n", blurb(),
desired_server_timeout, desired_server_interval,
(desired_prefer_blank ? "blank" : "noblank"),
(desired_allow_exp ? "noexpose" : "expose"));
prototypes in any header file! Thus, the prototypes here. (The
stuff in X11/extensions/dpms.h and X11/extensions/dpmsstr.h define
the raw X protcol, they don't define the API to libXdpms.a.)
+
+ Some documentation:
+ Library: ftp://ftp.x.org/pub/R6.4/xc/doc/specs/Xext/DPMSLib.ms
+ Protocol: ftp://ftp.x.org/pub/R6.4/xc/doc/specs/Xext/DPMS.ms
*/
#ifdef HAVE_DPMS_EXTENSION
if (!monitor_powered_on_p (si))
fprintf (stderr,
"%s: DPMSForceLevel(dpy, DPMSModeOn) did not power the monitor on?\n",
- progname);
+ blurb());
}
}