[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg-devel
Subject: Re: [RFC presentproto v3 02/14] Add PresentWindowCrtcNotify event
From: Michel_Dänzer <michel () daenzer ! net>
Date: 2017-09-29 16:47:30
Message-ID: 90cf6442-5c46-2a74-ca17-d383a7cb5153 () daenzer ! net
[Download RAW message or body]
On 27/09/17 07:19 AM, Louis-Francis Ratté-Boulianne wrote:
> Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
> ---
> presentproto.h | 16 ++++++++++++++++
> presenttokens.h | 5 ++++-
> 2 files changed, 20 insertions(+), 1 deletion(-)
>
> diff --git a/presentproto.h b/presentproto.h
> index 08ddc05..c59f2c0 100644
> --- a/presentproto.h
> +++ b/presentproto.h
> @@ -239,6 +239,22 @@ typedef struct {
> #define sz_xPresentRedirectNotify 104
> #endif
>
> +typedef struct {
> + CARD8 type;
> + CARD8 extension;
> + CARD16 sequenceNumber B16;
> + CARD32 length;
> + CARD16 evtype B16;
> + CARD16 pad2 B16;
> + CARD32 eid B32;
> + Window window B32;
> + CARD32 serial B32;
> + CARD32 crtc B32;
> + CARD32 pad4 B32;
> +} xPresentWindowCrtcNotify;
> +
> +#define sz_xPresentWindowCrtcNotify 32
> +
> #undef Window
> #undef Pixmap
> #undef Region
> diff --git a/presenttokens.h b/presenttokens.h
> index acb7576..fa92f89 100644
> --- a/presenttokens.h
> +++ b/presenttokens.h
> @@ -67,6 +67,7 @@
> #if PRESENT_FUTURE_VERSION
> #define PresentRedirectNotify 3
> #endif
> +#define PresentWindowCrtcNotify 4
>
> /* Event Masks */
> #define PresentConfigureNotifyMask 1
> @@ -75,6 +76,7 @@
> #if PRESENT_FUTURE_VERSION
> #define PresentRedirectNotifyMask 8
> #endif
> +#define PresentWindowCrtcNotifyMask 16
>
> #if PRESENT_FUTURE_VERSION
> #define PRESENT_REDIRECT_NOTIFY_MASK PresentRedirectNotifyMask
> @@ -85,7 +87,8 @@
> #define PresentAllEvents (PresentConfigureNotifyMask | \
> PresentCompleteNotifyMask | \
> PresentIdleNotifyMask | \
> - PRESENT_REDIRECT_NOTIFY_MASK)
> + PRESENT_REDIRECT_NOTIFY_MASK | \
> + PresentWindowCrtcNotifyMask)
>
> /* Complete Kinds */
>
>
If this patch survives despite my comments on patch 13, it should add
documentation of the new event in presentproto.txt.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic