XGetScreenSaver() XGetScreenSaver()
Name
XGetScreenSaver - get the current screen saver parameters.
Synopsis
XGetScreenSaver(display, timeout_return, interval_return,
prefer_blanking_return, allow_exposures_return)
Display *display;
int *timeout_return, *interval_return;
int *prefer_blanking_return;
int *allow_exposures_return;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
timeout_return
Returns the idle time, in seconds, until the screen saver turns on.
interval_return
Returns the interval between screen saver invocations, in seconds.
prefer_blanking_return
Returns the current screen blanking preference, one of these constants: DontPreferBlanking, PreferBlanking, or DefaultBlanking.
allow_exposures_return
Returns the current screen save control value, either DontAllowExposures, AllowExposures, or DefaultExposures.
Description
XGetScreenSaver() returns the current settings of the screen saver, which may be set with XSetScreenSaver().
A positive timeout_return indicates that the screen saver is enabled. A timeout_return of zero indicates that the screen saver is dis-
abled.
If the server-dependent screen saver method supports periodic change, interval_return serves as a hint about the length of the change
period, and zero serves as a hint that no periodic change will be made. An interval_return of zero indicates that random pattern motion is
disabled.
For more information on the screen saver, see Volume One, Chapter 15, Other Programming Techniques.
See Also
XActivateScreenSaver(), XForceScreenSaver(), XResetScreenSaver(), XSetScreenSaver().
Xlib - Screen Saver XGetScreenSaver()