al_inhibit_screensaver(3)

al_inhibit_screensaver3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
bool al_inhibit_screensaver(bool inhibit)

Overview

This function allows the user to stop the system screensaver from starting up if true is passed, or resets the system back to the default state (the state at program start) if false is passed. It returns true if the state was set successfully, otherwise false.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.