[RFC presentproto v3 02/14] Add PresentWindowCrtcNotify event

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Wed Sep 27 05:19:01 UTC 2017


Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb at 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 */
 
-- 
2.13.0



More information about the xorg-devel mailing list