summaryrefslogtreecommitdiff
path: root/presentproto.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-07-13 02:40:11 -0700
committerKeith Packard <keithp@keithp.com>2013-07-13 02:40:11 -0700
commitf1950e6f10a61318f22083900602d9c920d00667 (patch)
tree5a6c881177f4eb53c29bb16ca5ac0547918db7f1 /presentproto.h
parent5e7ebeb7e29be01b8046f30e93891180187e59c2 (diff)
Add NotifyMSC. Add serial numbers to Complete and MSC events
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'presentproto.h')
-rw-r--r--presentproto.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/presentproto.h b/presentproto.h
index 01fcb67..44dc96c 100644
--- a/presentproto.h
+++ b/presentproto.h
@@ -56,17 +56,37 @@ typedef struct {
CARD8 presentReqType;
CARD16 length B16;
Window window B32;
+
Pixmap pixmap B32;
+ CARD32 serial B32;
+
Region valid B32;
Region update B32;
+
INT16 x_off B16;
INT16 y_off B16;
+ XSyncFence idle_fence B32;
+
CARD64 target_msc;
CARD64 divisor;
CARD64 remainder;
- XSyncFence idle_fence B32;
} xPresentRegionReq;
-#define sz_xPresentRegionReq 52
+#define sz_xPresentRegionReq 56
+
+typedef struct {
+ CARD8 reqType;
+ CARD8 presentReqType;
+ CARD16 length B16;
+ Window window B32;
+
+ CARD32 serial B32;
+ CARD32 pad0 B32;
+
+ CARD64 target_msc;
+ CARD64 divisor;
+ CARD64 remainder;
+} xPresentNotifyMSCReq;
+#define sz_xPresentNotifyMSCReq 40
typedef struct {
CARD8 reqType;
@@ -115,12 +135,13 @@ typedef struct {
CARD16 pad2 B16;
CARD32 eid B32;
Window window B32;
- CARD32 pad3 B32;
+ CARD32 serial B32;
CARD64 ust;
CARD64 msc;
CARD64 sbc;
-} xPresentCompleteNotify;
+} xPresentCompleteNotify, xPresentMSCNotify;
#define sz_xPresentCompleteNotify 48
+#define sz_xPresentMSCNotify 48
typedef struct {
CARD8 type;