#include <X11/X.h>
#include <X11/Xlib.h>
Go to the source code of this file.
◆ MAX_SAVERS
◆ 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
-
| dpy | The X11 display. |
| w | The screen saver window. Will get cleared after saver child execution. |
| index | The index of the saver to maintain (0 <= index < MAX_SAVERS). |
| executable | What binary to spawn for screen saving. No arguments will be passed. |
| should_be_running | If true, the saver child is started if not running yet; if alse, the saver child will be terminated. |