15.2 Screen Saver
Screen saver routines are provided to control the blanking of the
screen when it has been idle for a time.
XSetScreenSaver() sets the operation of the screen
saver, including:
How long the display remains idle before it is blanked.
The time between random pattern motions.
Whether the application prefers screen blanking or not (regardless of whether the screen is capable of it).
Whether exposures are generated when the screen is restored.
XActivateScreenSaver() and
XResetScreenSaver() turn the screen saver on and off,
respectively, and XForceScreenSaver() can turn it on
or off according to a flag. XGetScreenSaver() returns
the current settings of the screen saver.
At this writing, the X Consortium is working on an X extension that will support more advanced screen saving abilities.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access