summaryrefslogtreecommitdiff
path: root/presenttokens.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 /presenttokens.h
parent5e7ebeb7e29be01b8046f30e93891180187e59c2 (diff)
Add NotifyMSC. Add serial numbers to Complete and MSC events
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'presenttokens.h')
-rw-r--r--presenttokens.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/presenttokens.h b/presenttokens.h
index ba13390..d829f11 100644
--- a/presenttokens.h
+++ b/presenttokens.h
@@ -32,16 +32,24 @@
#define X_PresentQueryVersion 0
#define X_PresentRegion 1
-#define X_PresentSelectInput 2
+#define X_PresentNotifyMSC 2
+#define X_PresentSelectInput 3
-#define PresentNumberRequests 3
+#define PresentNumberRequests 4
#define PresentConfigureNotify 0
#define PresentCompleteNotify 1
-#define PresentRedirectNotify 2
-
-#define PresentAllEvents ((1 << PresentConfigureNotify) | \
- (1 << PresentCompleteNotify) | \
- (1 << PresentRedirectNotify))
+#define PresentMSCNotify 2
+#define PresentRedirectNotify 3
+
+#define PresentConfigureNotifyMask 1
+#define PresentCompleteNotifyMask 2
+#define PresentMSCNotifyMask 4
+#define PresentRedirectNotifyMask 8
+
+#define PresentAllEvents (PresentConfigureNotifyMask | \
+ PresentCompleteNotifyMask | \
+ PresentMSCNotifyMask | \
+ PresentRedirectNotifyMask)
#endif