Re: [PATCH xserver v2] dpms: Add support for DPMSInfoNotify event

2018-10-02 Thread Александр Волков
Patch for xcb-proto and a test program are applied. The test program can be compiled by gcc -o dpmsnotify dpmsnotify.c -lxcb -lxcb-dpms >From 00f7947121181fc98cb09e4b86e14bd4738958d0 Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Mon, 1 Oct 2018 19:41:18 +0300 Subject: [PATCH] dpms: Add

[PATCH xserver v2] dpms: Add support for DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
From: Alexander Volkov It was introduced in 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 v2: send as

[PATCH xorgproto v2] Add DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
From: Alexander Volkov 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. Bump DPMS version to 1.2. v2: add it as generic event Signed-off-by: Alexander Volkov ---

RE: [EXTERNAL] - [PATCH xorgproto] Add DPMSInfoNotify event

2018-10-02 Thread Peter Harris
On 2018-10-02 Alexander Volkov wrote: > > -#define DPMSNumberEvents 0 > +#define DPMSNumberEvents 1 I don't have a strong opinion, so feel free to ignore me, but in general we don't add core events any more (the limited event space is already full in some configurations). The "modern"

Re: [PATCH xorgproto] Add DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
02.10.2018 17:33, Julien Cristau пишет: We shouldn't be adding new extension events that don't come through the Generic Event Extension, as the extension event space is basically full, IIRC (see https://lists.x.org/pipermail/xorg-devel/2010-March/006716.html). Ok, thanks. This also seems like

Re: [PATCH xorgproto] Add DPMSInfoNotify event

2018-10-02 Thread Julien Cristau
On 10/02/2018 03:10 PM, Alexander Volkov wrote: > From: Alexander Volkov > > 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. > > Bump DPMS version to 1.2. > > Signed-off-by:

Re: [PATCH xcb] dpms: Add DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
Oh, sorry for sending it twice. See the test program in the attachment. It can be compiled by gcc -o dpmsnotify dpmsnotify.c -lxcb -lxcb-dpms #include #include #include #include int main() { xcb_connection_t*c; xcb_generic_event_t *e; /* Open the connection to the X server

[PATCH xserver] dpms: Add support for DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
From: Alexander Volkov It was introduced in 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:

[PATCH xcb] dpms: Add DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
From: Alexander Volkov See the description in xorgproto repository. Signed-off-by: Alexander Volkov --- src/dpms.xml | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/dpms.xml b/src/dpms.xml index 5581284..51decb7 100644 --- a/src/dpms.xml +++

[PATCH xorgproto] Add DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
From: Alexander Volkov 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. Bump DPMS version to 1.2. Signed-off-by: Alexander Volkov --- include/X11/extensions/dpmsconst.h | 5

[PATCH xcb] dpms: Add DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
From: Alexander Volkov See the description in xorgproto repository. Signed-off-by: Alexander Volkov --- src/dpms.xml | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/dpms.xml b/src/dpms.xml index 5581284..51decb7 100644 --- a/src/dpms.xml +++

[PATCH xorgproto] Add DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
From: Alexander Volkov 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. Bump DPMS version to 1.2. Signed-off-by: Alexander Volkov --- include/X11/extensions/dpmsconst.h | 5

[PATCH xserver] dpms: Add support for DPMSInfoNotify event

2018-10-02 Thread Alexander Volkov
From: Alexander Volkov It was introduced in 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: