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.

Get XLIB Programming Manual, Rel. 5, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.