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