xsecurelock 1.8.0
XSecureLock is an X11 screen lock utility.
Loading...
Searching...
No Matches
xscreensaver_api.c File Reference
#include "xscreensaver_api.h"
#include <X11/X.h>
#include <stdio.h>
#include <stdlib.h>
#include "env_settings.h"
#include "logging.h"

Functions

void ExportWindowID (Window w)
 Export the given window ID to the environment for a saver/auth child.
void ExportSaverIndex (int index)
 Export the given saver index to the environment for a saver/auth child.
Window ReadWindowID (void)
 Reads the window ID to draw on from the environment.

Function Documentation

◆ ExportSaverIndex()

void ExportSaverIndex ( int index)

Export the given saver index to the environment for a saver/auth child.

This simply sets $XSCREENSAVER_SAVER_INDEX.

Parameters
indexThe index of the saver.

◆ ExportWindowID()

void ExportWindowID ( Window w)

Export the given window ID to the environment for a saver/auth child.

This simply sets $XSCREENSAVER_WINDOW.

Parameters
wThe window the child should draw on.

◆ ReadWindowID()

Window ReadWindowID ( void )

Reads the window ID to draw on from the environment.

This simply reads $XSCREENSAVER_WINDOW.