summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@evo.keithp.com>2006-02-24 02:55:19 +0100
committerKeith Packard <keithp@evo.keithp.com>2006-02-24 02:55:19 +0100
commit565c0bcc569f5ab9114314185316fe2129aa5a3e (patch)
tree65aaab93a5e6fdd9733828366e653bc933c9d7be
parent8e0790045d33525ec182afd3997014b46ef77b66 (diff)
Add coordinate transform redirect protocol bits
-rw-r--r--composite.h12
-rw-r--r--compositeproto.h50
2 files changed, 58 insertions, 4 deletions
diff --git a/composite.h b/composite.h
index 4ba6b45..223a7c9 100644
--- a/composite.h
+++ b/composite.h
@@ -1,5 +1,5 @@
/*
- * $Id: composite.h,v 1.4 2004-07-08 07:20:55 keithp Exp $
+ * $Id: composite.h,v 1.4 2004/07/08 07:20:55 keithp Exp $
*
* Copyright © 2003 Keith Packard
*
@@ -29,7 +29,7 @@
#define COMPOSITE_NAME "Composite"
#define COMPOSITE_MAJOR 0
-#define COMPOSITE_MINOR 2
+#define COMPOSITE_MINOR 3
#define CompositeRedirectAutomatic 0
#define CompositeRedirectManual 1
@@ -41,7 +41,13 @@
#define X_CompositeUnredirectSubwindows 4
#define X_CompositeCreateRegionFromBorderClip 5
#define X_CompositeNameWindowPixmap 6
+#define X_CompositeRedirectCoordinate 7
+#define X_CompositeTransformCoordinate 8
-#define CompositeNumberRequests (X_CompositeNameWindowPixmap + 1)
+#define CompositeNumberRequests (X_CompositeTransformCoordinate + 1)
+
+#define CompositeTransformCoordinateNotify 0
+
+#define CompositeNumberEvents 1
#endif /* _COMPOSITE_H_ */
diff --git a/compositeproto.h b/compositeproto.h
index bd8999d..6b391f8 100644
--- a/compositeproto.h
+++ b/compositeproto.h
@@ -1,5 +1,5 @@
/*
- * $Id: compositeproto.h,v 1.4 2004-07-08 07:20:55 keithp Exp $
+ * $Id: compositeproto.h,v 1.4 2004/07/08 07:20:55 keithp Exp $
*
* Copyright © 2003 Keith Packard
*
@@ -129,6 +129,54 @@ typedef struct {
#define sz_xCompositeNameWindowPixmapReq 12
+/* Version 0.3 additions */
+
+typedef struct {
+ CARD8 reqType;
+ CARD8 compositeReqType;
+ CARD16 length;
+ Window window B32;
+ BOOL redirect;
+ BYTE unused1;
+ CARD16 unused2 B16;
+} xCompositeRedirectCoordinateReq;
+
+#define sz_xCompositeRedirectCoordinateReq 12
+
+typedef struct {
+ CARD8 type;
+ CARD8 subtype; /* XXX use this? */
+ CARD16 sequenceNumber B16;
+ Time time B32;
+ Window window B32;
+ Window child B32;
+ CARD32 serialNumber B32;
+ CARD32 count B32;
+ CARD16 x B16;
+ CARD16 y B16;
+ CARD32 pad1 B32;
+} xCompositeTransformCoordinateNotifyEvent;
+
+typedef struct {
+ Window window B32;
+ CARD16 x B16;
+ CARD16 y B16;
+} xCompositeCoordinate;
+
+#define sz_xCompositeCoordinate 8
+
+typedef struct {
+ CARD8 reqType;
+ CARD8 compositeReqType;
+ CARD16 length;
+ Window window B32;
+ CARD32 serialNumber B32;
+ CARD16 x B16;
+ CARD16 y B16;
+} xCompositeTransformCoordinateReq;
+
+#define sz_xCompositeTransformCoordinateReq 16
+
#undef Window
#undef Region