b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/***********************************************************
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCopyright 1987, 1998 The Open Group
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
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.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncThe above copyright notice and this permission notice shall be included in
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncall copies or substantial portions of the Software.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
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.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
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.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync All Rights Reserved
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
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.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
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
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncSOFTWARE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync******************************************************************/
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#ifndef WINDOWSTRUCT_H
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define WINDOWSTRUCT_H
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "window.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "pixmapstr.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "regionstr.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "cursor.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "property.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "resource.h" /* for ROOT_WINDOW_ID_BASE */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "dix.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "privates.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "miscstruct.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include <X11/Xprotostr.h>
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "opaque.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define GuaranteeNothing 0
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define GuaranteeVisBack 1
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define SameBackground(as, a, bs, b) \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ((as) == (bs) && ((as) == None || \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (as) == ParentRelative || \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SamePixUnion(a,b,as == BackgroundPixel)))
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define SameBorder(as, a, bs, b) \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync EqualPixUnion(as, a, bs, b)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* used as NULL-terminated list */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _DevCursorNode {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CursorPtr cursor;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr dev;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync struct _DevCursorNode* next;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} DevCursNodeRec, *DevCursNodePtr, *DevCursorList;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _WindowOpt {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync VisualID visual; /* default: same as parent */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CursorPtr cursor; /* default: window.cursorNone */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Colormap colormap; /* default: same as parent */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Mask dontPropagateMask; /* default: window.dontPropagate */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Mask otherEventMasks; /* default: 0 */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync struct _OtherClients *otherClients; /* default: NULL */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync struct _GrabRec *passiveGrabs; /* default: NULL */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PropertyPtr userProps; /* default: NULL */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long backingBitPlanes; /* default: ~0L */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long backingPixel; /* default: 0 */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr boundingShape; /* default: NULL */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr clipShape; /* default: NULL */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr inputShape; /* default: NULL */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync struct _OtherInputMasks *inputMasks; /* default: NULL */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DevCursorList deviceCursors; /* default: NULL */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} WindowOptRec, *WindowOptPtr;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define BackgroundPixel 2L
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define BackgroundPixmap 3L
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/*
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * The redirectDraw field can have one of three values:
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync *
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 */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define RedirectDrawNone 0
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define RedirectDrawAutomatic 1
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define RedirectDrawManual 2
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _Window {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DrawableRec drawable;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PrivateRec *devPrivates;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr parent; /* ancestor chain */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr nextSib; /* next lower sibling */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr prevSib; /* next higher sibling */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr firstChild; /* top-most child */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr lastChild; /* bottom-most child */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionRec clipList; /* clipping rectangle for output */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionRec borderClip; /* NotClippedByChildren + border */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync union _Validate *valdata;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionRec winSize;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionRec borderSize;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DDXPointRec origin; /* position relative to parent */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned short borderWidth;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned short deliverableEvents; /* all masks from all clients */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Mask eventMask; /* mask from the creating client */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixUnion background;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixUnion border;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer backStorage; /* null when BS disabled */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowOptPtr optional;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned backgroundState:2; /* None, Relative, Pixel, Pixmap */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned borderIsPixel:1;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned cursorIsNone:1; /* else real cursor (might inherit) */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned backingStore:2;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned saveUnder:1;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned DIXsaveUnder:1;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned bitGravity:4;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned winGravity:4;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned overrideRedirect:1;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned visibility:2;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned mapped:1;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned realized:1; /* ancestors are all mapped */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned viewable:1; /* realized && InputOutput */
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#ifdef ROOTLESS
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned rootlessUnhittable:1; /* doesn't hit-test */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#endif
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} WindowRec;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/*
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Ok, a bunch of macros for accessing the optional record
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * fields (or filling the appropriate default value)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT Mask DontPropagateMasks[];
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define wTrackParent(w,field) ((w)->optional ? \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (w)->optional->field \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync : FindWindowWithOptional(w)->optional->field)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define wUseDefault(w,field,def) ((w)->optional ? \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync (w)->optional->field \
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync : def)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define wVisual(w) wTrackParent(w, visual)
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#define wBorderWidth(w) ((int) (w)->borderWidth)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* true when w needs a border drawn. */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define HasBorder(w) ((w)->borderWidth || wClipShape(w))
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _ScreenSaverStuff {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr pWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync XID wid;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync char blanked;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool (*ExternalScreenSaver)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*xstate*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool /*force*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} ScreenSaverStuffRec, *ScreenSaverStuffPtr;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define SCREEN_IS_BLANKED 0
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define SCREEN_ISNT_SAVED 1
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define SCREEN_IS_TILED 2
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define SCREEN_IS_BLACK 3
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define HasSaverWindow(i) (savedScreenInfo[i].pWindow != NullWindow)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT int screenIsSaved;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT ScreenSaverStuffRec savedScreenInfo[MAXSCREENS];
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#endif /* WINDOWSTRUCT_H */