summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <Joel.Bosveld@gmail.com>2009-06-26 10:17:31 +0800
committerJoel Bosveld <Joel.Bosveld@gmail.com>2009-06-26 10:17:31 +0800
commitdaeb91bca5a6ca32100cdbeb1783aba602593b8e (patch)
treead28b5237616f013aaa59216a260e6fce114133e
parentd3ffc43b249a6e410cf029bcc00048e1e256b2a2 (diff)
Add CompositeRedirectWindowInput request for input redirection
This is distinct from transformation of window. This is for redirection input events from one window to another
-rw-r--r--composite.h3
-rw-r--r--compositeproto.h10
2 files changed, 12 insertions, 1 deletions
diff --git a/composite.h b/composite.h
index fc60607..8023e76 100644
--- a/composite.h
+++ b/composite.h
@@ -67,8 +67,9 @@
#define X_CompositeGetOverlayWindow 7
#define X_CompositeReleaseOverlayWindow 8
#define X_CompositeSetTriangularCoordinateMesh 9
+#define X_CompositeRedirectWindowInput 10
-#define CompositeNumberRequests (X_CompositeSetTriangularCoordinateMesh + 1)
+#define CompositeNumberRequests (X_CompositeRedirectWindowInput + 1)
#define CompositeNumberEvents 0
diff --git a/compositeproto.h b/compositeproto.h
index ac88bdd..3c99039 100644
--- a/compositeproto.h
+++ b/compositeproto.h
@@ -200,6 +200,16 @@ typedef struct {
#define sz_xCompositeSetTriangularCoordinateMeshReq sizeof(xCompositeSetTriangularCoordinateMeshReq)
+typedef struct {
+ CARD8 reqType;
+ CARD8 compositeReqType;
+ CARD16 length;
+ Window window B32;
+ Window destination B32;
+} xCompositeRedirectWindowInputReq;
+
+#define sz_xCompositeRedirectWindowInputReq sizeof(xCompositeRedirectWindowInputReq)
+
#undef Window
#undef Region
#undef Pixmap