XGetScreenSaver()XGetScreenSaver()NameXGetScreenSaver – 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 Default‐
Blanking.
allow_exposures_return
Returns the current screen save control value, either DontAl‐
lowExposures, AllowExposures, or DefaultExposures.
DescriptionXGetScreenSaver() 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 disabled.
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 dis‐
abled.
For more information on the screen saver, see Volume One, Chapter 15,
Other Programming Techniques.
See AlsoXActivateScreenSaver(), XForceScreenSaver(), XResetScreenSaver(),
XSetScreenSaver().
Xlib - Screen Saver XGetScreenSaver()