f0ab104f070bc7f569404826fea1828ed985638cvboxsync/***********************************************************
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncCopyright 1987, 1998 The Open Group
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncPermission to use, copy, modify, distribute, and sell this software and its
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncdocumentation for any purpose is hereby granted without fee, provided that
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncthe above copyright notice appear in all copies and that both that
f0ab104f070bc7f569404826fea1828ed985638cvboxsynccopyright notice and this permission notice appear in supporting
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncdocumentation.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncThe above copyright notice and this permission notice shall be included in
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncall copies or substantial portions of the Software.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncExcept as contained in this notice, the name of The Open Group shall not be
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncused in advertising or otherwise to promote the sale, use or other dealings
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncin this Software without prior written authorization from The Open Group.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync All Rights Reserved
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncPermission to use, copy, modify, and distribute this software and its
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncdocumentation for any purpose and without fee is hereby granted,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncprovided that the above copyright notice appear in all copies and that
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncboth that copyright notice and this permission notice appear in
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncsupporting documentation, and that the name of Digital not be
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncused in advertising or publicity pertaining to distribution of the
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncsoftware without specific, written prior permission.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
f0ab104f070bc7f569404826fea1828ed985638cvboxsync******************************************************************/
f0ab104f070bc7f569404826fea1828ed985638cvboxsync/* used as NULL-terminated list */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync Mask dontPropagateMask; /* default: window.dontPropagate */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync struct _OtherClients *otherClients; /* default: NULL */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync struct _OtherInputMasks *inputMasks; /* default: NULL */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * The redirectDraw field can have one of three values:
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * RedirectDrawNone
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * A normal window; painted into the same pixmap as the parent
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * and clipping parent and siblings to its geometry. These
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * windows get a clip list equal to the intersection of their
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * geometry with the parent geometry, minus the geometry
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * of overlapping None and Clipped siblings.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * RedirectDrawAutomatic
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * A redirected window which clips parent and sibling drawing.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Contents for these windows are manage inside the server.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * These windows get an internal clip list equal to their
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * geometry.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * RedirectDrawManual
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * A redirected window which does not clip parent and sibling
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * drawing; the window must be represented within the parent
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * geometry by the client performing the redirection management.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Contents for these windows are managed outside the server.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * These windows get an internal clip list equal to their
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * geometry.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync RegionRec clipList; /* clipping rectangle for output */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync RegionRec borderClip; /* NotClippedByChildren + border */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync DDXPointRec origin; /* position relative to parent */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned short deliverableEvents; /* all masks from all clients */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync Mask eventMask; /* mask from the creating client */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned backgroundState:2; /* None, Relative, Pixel, Pixmap */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned cursorIsNone:1; /* else real cursor (might inherit) */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned realized:1; /* ancestors are all mapped */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned dontPropagate:3;/* index into DontPropagateMasks */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned forcedBS:1; /* system-supplied backingStore */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned redirectDraw:2; /* COMPOSITE rendering redirect */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned forcedBG:1; /* must have an opaque background */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned rootlessUnhittable:1; /* doesn't hit-test */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned damagedDescendants:1; /* some descendants are damaged */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned inhibitBGPaint:1; /* paint the background? */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * Ok, a bunch of macros for accessing the optional record
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * fields (or filling the appropriate default value)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wCursor(w) ((w)->cursorIsNone ? None : wTrackParent(w, cursor))
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wColormap(w) ((w)->drawable.class == InputOnly ? None : wTrackParent(w, colormap))
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wDontPropagateMask(w) wUseDefault(w, dontPropagateMask, DontPropagateMasks[(w)->dontPropagate])
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wOtherEventMasks(w) wUseDefault(w, otherEventMasks, 0)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wOtherClients(w) wUseDefault(w, otherClients, NULL)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wOtherInputMasks(w) wUseDefault(w, inputMasks, NULL)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wPassiveGrabs(w) wUseDefault(w, passiveGrabs, NULL)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wUserProps(w) wUseDefault(w, userProps, NULL)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wBackingBitPlanes(w) wUseDefault(w, backingBitPlanes, ~0L)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wBackingPixel(w) wUseDefault(w, backingPixel, 0)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wBoundingShape(w) wUseDefault(w, boundingShape, NULL)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wClipShape(w) wUseDefault(w, clipShape, NULL)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wInputShape(w) wUseDefault(w, inputShape, NULL)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define wClient(w) (clients[CLIENT_ID((w)->drawable.id)])
f0ab104f070bc7f569404826fea1828ed985638cvboxsync/* true when w needs a border drawn. */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define HasBorder(w) ((w)->borderWidth || wClipShape(w))
f0ab104f070bc7f569404826fea1828ed985638cvboxsynctypedef struct _ScreenSaverStuff *ScreenSaverStuffPtr;
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#define HasSaverWindow(pScreen) (pScreen->screensaver.pWindow != NullWindow)
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#endif /* WINDOWSTRUCT_H */