dpms: Add support for DPMSInfoNotify event from DPMS 1.2 (xorgproto)

This allows applications to respond to changes of power level
of a monitor, e.g. an application may stop rendering and related
calculations when the monitor is off.

Related bug: https://bugs.freedesktop.org/57120

Signed-off-by: Alexander Volkov <avolkov@astralinux.ru>
This commit is contained in:
Alexander Volkov 2018-10-01 19:52:30 +03:00
commit 62fec48a6b
3 changed files with 221 additions and 7 deletions

View file

@ -46,6 +46,10 @@
#define SERVER_DAMAGE_MAJOR_VERSION 1
#define SERVER_DAMAGE_MINOR_VERSION 1
/* DPMS */
#define SERVER_DPMS_MAJOR_VERSION 1
#define SERVER_DPMS_MINOR_VERSION 2
/* DRI3 */
#define SERVER_DRI3_MAJOR_VERSION 1
#define SERVER_DRI3_MINOR_VERSION 2