xsecurelock  1.7.0
XSecureLock is an X11 screen lock utility.
Macros | Functions
saver_child.h File Reference
#include <X11/X.h>
#include <X11/Xlib.h>

Go to the source code of this file.

Macros

#define MAX_SAVERS   16
 

Functions

void KillAllSaverChildrenSigHandler (int signo)
 Kill all saver children. More...
 
void WatchSaverChild (Display *dpy, Window w, int index, const char *executable, int should_be_running)
 Starts or stops the screen saver child process. More...
 

Macro Definition Documentation

◆ MAX_SAVERS

#define MAX_SAVERS   16

Function Documentation

◆ KillAllSaverChildrenSigHandler()

void KillAllSaverChildrenSigHandler ( int  signo)

Kill all saver children.

This can be used from a signal handler.

◆ WatchSaverChild()

void WatchSaverChild ( Display *  dpy,
Window  w,
int  index,
const char *  executable,
int  should_be_running 
)

Starts or stops the screen saver child process.

Parameters
dpyThe X11 display.
wThe screen saver window. Will get cleared after saver child execution.
indexThe index of the saver to maintain (0 <= index < MAX_SAVERS).
executableWhat binary to spawn for screen saving. No arguments will be passed.
should_be_runningIf true, the saver child is started if not running yet; if alse, the saver child will be terminated.