2 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
24 * Copyright © 2003 Keith Packard
26 * Permission to use, copy, modify, distribute, and sell this software and its
27 * documentation for any purpose is hereby granted without fee, provided that
28 * the above copyright notice appear in all copies and that both that
29 * copyright notice and this permission notice appear in supporting
30 * documentation, and that the name of Keith Packard not be used in
31 * advertising or publicity pertaining to distribution of the software without
32 * specific, written prior permission. Keith Packard makes no
33 * representations about the suitability of this software for any purpose. It
34 * is provided "as is" without express or implied warranty.
36 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
37 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
38 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
39 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
40 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
41 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42 * PERFORMANCE OF THIS SOFTWARE.
45 #ifndef _COMPOSITEPROTO_H_
46 #define _COMPOSITEPROTO_H_
49 #include <X11/extensions/composite.h>
56 * requests and replies
60 CARD8 compositeReqType;
62 CARD32 majorVersion B32;
63 CARD32 minorVersion B32;
64 } xCompositeQueryVersionReq;
66 #define sz_xCompositeQueryVersionReq 12
69 BYTE type; /* X_Reply */
71 CARD16 sequenceNumber B16;
73 CARD32 majorVersion B32;
74 CARD32 minorVersion B32;
79 } xCompositeQueryVersionReply;
81 #define sz_xCompositeQueryVersionReply 32
85 CARD8 compositeReqType;
91 } xCompositeRedirectWindowReq;
93 #define sz_xCompositeRedirectWindowReq 12
97 CARD8 compositeReqType;
103 } xCompositeRedirectSubwindowsReq;
105 #define sz_xCompositeRedirectSubwindowsReq 12
109 CARD8 compositeReqType;
115 } xCompositeUnredirectWindowReq;
117 #define sz_xCompositeUnredirectWindowReq 12
121 CARD8 compositeReqType;
127 } xCompositeUnredirectSubwindowsReq;
129 #define sz_xCompositeUnredirectSubwindowsReq 12
133 CARD8 compositeReqType;
137 } xCompositeCreateRegionFromBorderClipReq;
139 #define sz_xCompositeCreateRegionFromBorderClipReq 12
141 /* Version 0.2 additions */
145 CARD8 compositeReqType;
149 } xCompositeNameWindowPixmapReq;
151 #define sz_xCompositeNameWindowPixmapReq 12
153 /* Version 0.3 additions */
157 CARD8 compositeReqType;
160 } xCompositeGetOverlayWindowReq;
162 #define sz_xCompositeGetOverlayWindowReq sizeof(xCompositeGetOverlayWindowReq)
165 BYTE type; /* X_Reply */
167 CARD16 sequenceNumber B16;
169 Window overlayWin B32;
175 } xCompositeGetOverlayWindowReply;
177 #define sz_xCompositeGetOverlayWindowReply sizeof(xCompositeGetOverlayWindowReply)
181 CARD8 compositeReqType;
184 } xCompositeReleaseOverlayWindowReq;
186 #define sz_xCompositeReleaseOverlayWindowReq sizeof(xCompositeReleaseOverlayWindowReq)
192 #endif /* _COMPOSITEPROTO_H_ */