Shape extension is built-in and mandatory.
This commit is contained in:
parent
990fc643ae
commit
d6228cb22a
|
@ -29,7 +29,6 @@ BUILTIN_SRCS = \
|
||||||
# Sources always included in libXextmodule.la & libXext.la
|
# Sources always included in libXextmodule.la & libXext.la
|
||||||
MODULE_SRCS = \
|
MODULE_SRCS = \
|
||||||
bigreq.c \
|
bigreq.c \
|
||||||
shape.c \
|
|
||||||
sync.c \
|
sync.c \
|
||||||
xcmisc.c
|
xcmisc.c
|
||||||
|
|
||||||
|
|
|
@ -595,9 +595,7 @@ int PanoramiXTranslateCoords(ClientPtr client)
|
||||||
}
|
}
|
||||||
pWin = pDst->firstChild;
|
pWin = pDst->firstChild;
|
||||||
while (pWin) {
|
while (pWin) {
|
||||||
#ifdef SHAPE
|
|
||||||
BoxRec box;
|
BoxRec box;
|
||||||
#endif
|
|
||||||
if ((pWin->mapped) &&
|
if ((pWin->mapped) &&
|
||||||
(x >= pWin->drawable.x - wBorderWidth (pWin)) &&
|
(x >= pWin->drawable.x - wBorderWidth (pWin)) &&
|
||||||
(x < pWin->drawable.x + (int)pWin->drawable.width +
|
(x < pWin->drawable.x + (int)pWin->drawable.width +
|
||||||
|
@ -605,7 +603,6 @@ int PanoramiXTranslateCoords(ClientPtr client)
|
||||||
(y >= pWin->drawable.y - wBorderWidth (pWin)) &&
|
(y >= pWin->drawable.y - wBorderWidth (pWin)) &&
|
||||||
(y < pWin->drawable.y + (int)pWin->drawable.height +
|
(y < pWin->drawable.y + (int)pWin->drawable.height +
|
||||||
wBorderWidth (pWin))
|
wBorderWidth (pWin))
|
||||||
#ifdef SHAPE
|
|
||||||
/* When a window is shaped, a further check
|
/* When a window is shaped, a further check
|
||||||
* is made to see if the point is inside
|
* is made to see if the point is inside
|
||||||
* borderSize
|
* borderSize
|
||||||
|
@ -615,7 +612,6 @@ int PanoramiXTranslateCoords(ClientPtr client)
|
||||||
wBoundingShape(pWin),
|
wBoundingShape(pWin),
|
||||||
x - pWin->drawable.x,
|
x - pWin->drawable.x,
|
||||||
y - pWin->drawable.y, &box))
|
y - pWin->drawable.y, &box))
|
||||||
#endif
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rep.child = pWin->drawable.id;
|
rep.child = pWin->drawable.id;
|
||||||
|
|
|
@ -155,10 +155,8 @@ ProcXWarpDevicePointer(ClientPtr client)
|
||||||
else if (y >= pSprite->physLimits.y2)
|
else if (y >= pSprite->physLimits.y2)
|
||||||
y = pSprite->physLimits.y2 - 1;
|
y = pSprite->physLimits.y2 - 1;
|
||||||
|
|
||||||
#if defined(SHAPE)
|
|
||||||
if (pSprite->hotShape)
|
if (pSprite->hotShape)
|
||||||
ConfineToShape(pDev, pSprite->hotShape, &x, &y);
|
ConfineToShape(pDev, pSprite->hotShape, &x, &y);
|
||||||
#endif
|
|
||||||
(*newScreen->SetCursorPosition)(pDev, newScreen, x, y, TRUE);
|
(*newScreen->SetCursorPosition)(pDev, newScreen, x, y, TRUE);
|
||||||
} else if (!PointerConfinedToScreen(pDev))
|
} else if (!PointerConfinedToScreen(pDev))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1044,9 +1044,7 @@ ProcTranslateCoords(ClientPtr client)
|
||||||
pWin = pDst->firstChild;
|
pWin = pDst->firstChild;
|
||||||
while (pWin)
|
while (pWin)
|
||||||
{
|
{
|
||||||
#ifdef SHAPE
|
|
||||||
BoxRec box;
|
BoxRec box;
|
||||||
#endif
|
|
||||||
if ((pWin->mapped) &&
|
if ((pWin->mapped) &&
|
||||||
(x >= pWin->drawable.x - wBorderWidth (pWin)) &&
|
(x >= pWin->drawable.x - wBorderWidth (pWin)) &&
|
||||||
(x < pWin->drawable.x + (int)pWin->drawable.width +
|
(x < pWin->drawable.x + (int)pWin->drawable.width +
|
||||||
|
@ -1054,7 +1052,6 @@ ProcTranslateCoords(ClientPtr client)
|
||||||
(y >= pWin->drawable.y - wBorderWidth (pWin)) &&
|
(y >= pWin->drawable.y - wBorderWidth (pWin)) &&
|
||||||
(y < pWin->drawable.y + (int)pWin->drawable.height +
|
(y < pWin->drawable.y + (int)pWin->drawable.height +
|
||||||
wBorderWidth (pWin))
|
wBorderWidth (pWin))
|
||||||
#ifdef SHAPE
|
|
||||||
/* When a window is shaped, a further check
|
/* When a window is shaped, a further check
|
||||||
* is made to see if the point is inside
|
* is made to see if the point is inside
|
||||||
* borderSize
|
* borderSize
|
||||||
|
@ -1068,7 +1065,6 @@ ProcTranslateCoords(ClientPtr client)
|
||||||
wInputShape(pWin),
|
wInputShape(pWin),
|
||||||
x - pWin->drawable.x,
|
x - pWin->drawable.x,
|
||||||
y - pWin->drawable.y, &box))
|
y - pWin->drawable.y, &box))
|
||||||
#endif
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rep.child = pWin->drawable.id;
|
rep.child = pWin->drawable.id;
|
||||||
|
|
16
dix/events.c
16
dix/events.c
|
@ -815,7 +815,6 @@ SetCriticalEvent(int event)
|
||||||
criticalEvents[event >> 3] |= 1 << (event & 7);
|
criticalEvents[event >> 3] |= 1 << (event & 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
void
|
void
|
||||||
ConfineToShape(DeviceIntPtr pDev, RegionPtr shape, int *px, int *py)
|
ConfineToShape(DeviceIntPtr pDev, RegionPtr shape, int *px, int *py)
|
||||||
{
|
{
|
||||||
|
@ -853,7 +852,6 @@ ConfineToShape(DeviceIntPtr pDev, RegionPtr shape, int *px, int *py)
|
||||||
*px = x;
|
*px = x;
|
||||||
*py = y;
|
*py = y;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
CheckPhysLimits(
|
CheckPhysLimits(
|
||||||
|
@ -887,10 +885,8 @@ CheckPhysLimits(
|
||||||
else
|
else
|
||||||
if (new.y >= pSprite->physLimits.y2)
|
if (new.y >= pSprite->physLimits.y2)
|
||||||
new.y = pSprite->physLimits.y2 - 1;
|
new.y = pSprite->physLimits.y2 - 1;
|
||||||
#ifdef SHAPE
|
|
||||||
if (pSprite->hotShape)
|
if (pSprite->hotShape)
|
||||||
ConfineToShape(pDev, pSprite->hotShape, &new.x, &new.y);
|
ConfineToShape(pDev, pSprite->hotShape, &new.x, &new.y);
|
||||||
#endif
|
|
||||||
if ((pScreen != pSprite->hotPhys.pScreen) ||
|
if ((pScreen != pSprite->hotPhys.pScreen) ||
|
||||||
(new.x != pSprite->hotPhys.x) || (new.y != pSprite->hotPhys.y))
|
(new.x != pSprite->hotPhys.x) || (new.y != pSprite->hotPhys.y))
|
||||||
{
|
{
|
||||||
|
@ -942,11 +938,9 @@ CheckVirtualMotion(
|
||||||
pSprite->hot.y = lims.y1;
|
pSprite->hot.y = lims.y1;
|
||||||
else if (pSprite->hot.y >= lims.y2)
|
else if (pSprite->hot.y >= lims.y2)
|
||||||
pSprite->hot.y = lims.y2 - 1;
|
pSprite->hot.y = lims.y2 - 1;
|
||||||
#ifdef SHAPE
|
|
||||||
if (wBoundingShape(pWin))
|
if (wBoundingShape(pWin))
|
||||||
ConfineToShape(pDev, &pWin->borderSize,
|
ConfineToShape(pDev, &pWin->borderSize,
|
||||||
&pSprite->hot.x, &pSprite->hot.y);
|
&pSprite->hot.x, &pSprite->hot.y);
|
||||||
#endif
|
|
||||||
if (qe)
|
if (qe)
|
||||||
{
|
{
|
||||||
qe->pScreen = pSprite->hot.pScreen;
|
qe->pScreen = pSprite->hot.pScreen;
|
||||||
|
@ -982,10 +976,8 @@ ConfineCursorToWindow(DeviceIntPtr pDev, WindowPtr pWin, Bool generateEvents, Bo
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pSprite->hotLimits = *REGION_EXTENTS( pScreen, &pWin->borderSize);
|
pSprite->hotLimits = *REGION_EXTENTS( pScreen, &pWin->borderSize);
|
||||||
#ifdef SHAPE
|
|
||||||
pSprite->hotShape = wBoundingShape(pWin) ? &pWin->borderSize
|
pSprite->hotShape = wBoundingShape(pWin) ? &pWin->borderSize
|
||||||
: NullRegion;
|
: NullRegion;
|
||||||
#endif
|
|
||||||
CheckPhysLimits(pDev, pSprite->current, generateEvents,
|
CheckPhysLimits(pDev, pSprite->current, generateEvents,
|
||||||
confineToScreen, pScreen);
|
confineToScreen, pScreen);
|
||||||
}
|
}
|
||||||
|
@ -2628,7 +2620,6 @@ XYToWindow(DeviceIntPtr pDev, int x, int y)
|
||||||
(y >= pWin->drawable.y - wBorderWidth (pWin)) &&
|
(y >= pWin->drawable.y - wBorderWidth (pWin)) &&
|
||||||
(y < pWin->drawable.y + (int)pWin->drawable.height +
|
(y < pWin->drawable.y + (int)pWin->drawable.height +
|
||||||
wBorderWidth (pWin))
|
wBorderWidth (pWin))
|
||||||
#ifdef SHAPE
|
|
||||||
/* When a window is shaped, a further check
|
/* When a window is shaped, a further check
|
||||||
* is made to see if the point is inside
|
* is made to see if the point is inside
|
||||||
* borderSize
|
* borderSize
|
||||||
|
@ -2639,7 +2630,6 @@ XYToWindow(DeviceIntPtr pDev, int x, int y)
|
||||||
wInputShape(pWin),
|
wInputShape(pWin),
|
||||||
x - pWin->drawable.x,
|
x - pWin->drawable.x,
|
||||||
y - pWin->drawable.y, &box))
|
y - pWin->drawable.y, &box))
|
||||||
#endif
|
|
||||||
#ifdef ROOTLESS
|
#ifdef ROOTLESS
|
||||||
/* In rootless mode windows may be offscreen, even when
|
/* In rootless mode windows may be offscreen, even when
|
||||||
* they're in X's stack. (E.g. if the native window system
|
* they're in X's stack. (E.g. if the native window system
|
||||||
|
@ -2732,10 +2722,8 @@ CheckMotion(xEvent *xE, DeviceIntPtr pDev)
|
||||||
pSprite->hot.y = pSprite->physLimits.y1;
|
pSprite->hot.y = pSprite->physLimits.y1;
|
||||||
else if (pSprite->hot.y >= pSprite->physLimits.y2)
|
else if (pSprite->hot.y >= pSprite->physLimits.y2)
|
||||||
pSprite->hot.y = pSprite->physLimits.y2 - 1;
|
pSprite->hot.y = pSprite->physLimits.y2 - 1;
|
||||||
#ifdef SHAPE
|
|
||||||
if (pSprite->hotShape)
|
if (pSprite->hotShape)
|
||||||
ConfineToShape(pDev, pSprite->hotShape, &pSprite->hot.x, &pSprite->hot.y);
|
ConfineToShape(pDev, pSprite->hotShape, &pSprite->hot.x, &pSprite->hot.y);
|
||||||
#endif
|
|
||||||
#ifdef XEVIE
|
#ifdef XEVIE
|
||||||
xeviehot.x = pSprite->hot.x;
|
xeviehot.x = pSprite->hot.x;
|
||||||
xeviehot.y = pSprite->hot.y;
|
xeviehot.y = pSprite->hot.y;
|
||||||
|
@ -2970,9 +2958,7 @@ InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
|
||||||
pSprite->hotLimits.y2 = PanoramiXPixHeight - panoramiXdataPtr[0].y;
|
pSprite->hotLimits.y2 = PanoramiXPixHeight - panoramiXdataPtr[0].y;
|
||||||
pSprite->physLimits = pSprite->hotLimits;
|
pSprite->physLimits = pSprite->hotLimits;
|
||||||
pSprite->confineWin = NullWindow;
|
pSprite->confineWin = NullWindow;
|
||||||
#ifdef SHAPE
|
|
||||||
pSprite->hotShape = NullRegion;
|
pSprite->hotShape = NullRegion;
|
||||||
#endif
|
|
||||||
pSprite->screen = pScreen;
|
pSprite->screen = pScreen;
|
||||||
/* gotta UNINIT these someplace */
|
/* gotta UNINIT these someplace */
|
||||||
REGION_NULL(pScreen, &pSprite->Reg1);
|
REGION_NULL(pScreen, &pSprite->Reg1);
|
||||||
|
@ -3305,10 +3291,8 @@ ProcWarpPointer(ClientPtr client)
|
||||||
y = pSprite->physLimits.y1;
|
y = pSprite->physLimits.y1;
|
||||||
else if (y >= pSprite->physLimits.y2)
|
else if (y >= pSprite->physLimits.y2)
|
||||||
y = pSprite->physLimits.y2 - 1;
|
y = pSprite->physLimits.y2 - 1;
|
||||||
#if defined(SHAPE)
|
|
||||||
if (pSprite->hotShape)
|
if (pSprite->hotShape)
|
||||||
ConfineToShape(PickPointer(client), pSprite->hotShape, &x, &y);
|
ConfineToShape(PickPointer(client), pSprite->hotShape, &x, &y);
|
||||||
#endif
|
|
||||||
(*newScreen->SetCursorPosition)(PickPointer(client), newScreen, x, y,
|
(*newScreen->SetCursorPosition)(PickPointer(client), newScreen, x, y,
|
||||||
TRUE);
|
TRUE);
|
||||||
}
|
}
|
||||||
|
|
20
dix/window.c
20
dix/window.c
|
@ -407,11 +407,9 @@ CreateRootWindow(ScreenPtr pScreen)
|
||||||
pWin->optional->userProps = NULL;
|
pWin->optional->userProps = NULL;
|
||||||
pWin->optional->backingBitPlanes = ~0L;
|
pWin->optional->backingBitPlanes = ~0L;
|
||||||
pWin->optional->backingPixel = 0;
|
pWin->optional->backingPixel = 0;
|
||||||
#ifdef SHAPE
|
|
||||||
pWin->optional->boundingShape = NULL;
|
pWin->optional->boundingShape = NULL;
|
||||||
pWin->optional->clipShape = NULL;
|
pWin->optional->clipShape = NULL;
|
||||||
pWin->optional->inputShape = NULL;
|
pWin->optional->inputShape = NULL;
|
||||||
#endif
|
|
||||||
pWin->optional->inputMasks = NULL;
|
pWin->optional->inputMasks = NULL;
|
||||||
pWin->optional->deviceCursors = NULL;
|
pWin->optional->deviceCursors = NULL;
|
||||||
pWin->optional->geMasks = (GenericClientMasksPtr)xcalloc(1, sizeof(GenericClientMasksRec));
|
pWin->optional->geMasks = (GenericClientMasksPtr)xcalloc(1, sizeof(GenericClientMasksRec));
|
||||||
|
@ -884,14 +882,12 @@ FreeWindowResources(WindowPtr pWin)
|
||||||
REGION_UNINIT(pScreen, &pWin->winSize);
|
REGION_UNINIT(pScreen, &pWin->winSize);
|
||||||
REGION_UNINIT(pScreen, &pWin->borderClip);
|
REGION_UNINIT(pScreen, &pWin->borderClip);
|
||||||
REGION_UNINIT(pScreen, &pWin->borderSize);
|
REGION_UNINIT(pScreen, &pWin->borderSize);
|
||||||
#ifdef SHAPE
|
|
||||||
if (wBoundingShape (pWin))
|
if (wBoundingShape (pWin))
|
||||||
REGION_DESTROY(pScreen, wBoundingShape (pWin));
|
REGION_DESTROY(pScreen, wBoundingShape (pWin));
|
||||||
if (wClipShape (pWin))
|
if (wClipShape (pWin))
|
||||||
REGION_DESTROY(pScreen, wClipShape (pWin));
|
REGION_DESTROY(pScreen, wClipShape (pWin));
|
||||||
if (wInputShape (pWin))
|
if (wInputShape (pWin))
|
||||||
REGION_DESTROY(pScreen, wInputShape (pWin));
|
REGION_DESTROY(pScreen, wInputShape (pWin));
|
||||||
#endif
|
|
||||||
if (pWin->borderIsPixel == FALSE)
|
if (pWin->borderIsPixel == FALSE)
|
||||||
(*pScreen->DestroyPixmap)(pWin->border.pixmap);
|
(*pScreen->DestroyPixmap)(pWin->border.pixmap);
|
||||||
if (pWin->backgroundState == BackgroundPixmap)
|
if (pWin->backgroundState == BackgroundPixmap)
|
||||||
|
@ -1679,7 +1675,6 @@ CreateUnclippedWinSize (WindowPtr pWin)
|
||||||
box.x2 = pWin->drawable.x + (int) pWin->drawable.width;
|
box.x2 = pWin->drawable.x + (int) pWin->drawable.width;
|
||||||
box.y2 = pWin->drawable.y + (int) pWin->drawable.height;
|
box.y2 = pWin->drawable.y + (int) pWin->drawable.height;
|
||||||
pRgn = REGION_CREATE(pWin->drawable.pScreen, &box, 1);
|
pRgn = REGION_CREATE(pWin->drawable.pScreen, &box, 1);
|
||||||
#ifdef SHAPE
|
|
||||||
if (wBoundingShape (pWin) || wClipShape (pWin)) {
|
if (wBoundingShape (pWin) || wClipShape (pWin)) {
|
||||||
ScreenPtr pScreen;
|
ScreenPtr pScreen;
|
||||||
pScreen = pWin->drawable.pScreen;
|
pScreen = pWin->drawable.pScreen;
|
||||||
|
@ -1692,7 +1687,6 @@ CreateUnclippedWinSize (WindowPtr pWin)
|
||||||
REGION_INTERSECT(pScreen, pRgn, pRgn, wClipShape (pWin));
|
REGION_INTERSECT(pScreen, pRgn, pRgn, wClipShape (pWin));
|
||||||
REGION_TRANSLATE(pScreen, pRgn, pWin->drawable.x, pWin->drawable.y);
|
REGION_TRANSLATE(pScreen, pRgn, pWin->drawable.x, pWin->drawable.y);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return pRgn;
|
return pRgn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1720,7 +1714,6 @@ SetWinSize (WindowPtr pWin)
|
||||||
pWin->drawable.x, pWin->drawable.y,
|
pWin->drawable.x, pWin->drawable.y,
|
||||||
(int)pWin->drawable.width,
|
(int)pWin->drawable.width,
|
||||||
(int)pWin->drawable.height);
|
(int)pWin->drawable.height);
|
||||||
#ifdef SHAPE
|
|
||||||
if (wBoundingShape (pWin) || wClipShape (pWin)) {
|
if (wBoundingShape (pWin) || wClipShape (pWin)) {
|
||||||
ScreenPtr pScreen;
|
ScreenPtr pScreen;
|
||||||
pScreen = pWin->drawable.pScreen;
|
pScreen = pWin->drawable.pScreen;
|
||||||
|
@ -1736,7 +1729,6 @@ SetWinSize (WindowPtr pWin)
|
||||||
REGION_TRANSLATE(pScreen, &pWin->winSize, pWin->drawable.x,
|
REGION_TRANSLATE(pScreen, &pWin->winSize, pWin->drawable.x,
|
||||||
pWin->drawable.y);
|
pWin->drawable.y);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_X_EXPORT void
|
_X_EXPORT void
|
||||||
|
@ -1767,7 +1759,6 @@ SetBorderSize (WindowPtr pWin)
|
||||||
pWin->drawable.x - bw, pWin->drawable.y - bw,
|
pWin->drawable.x - bw, pWin->drawable.y - bw,
|
||||||
(int)(pWin->drawable.width + (bw<<1)),
|
(int)(pWin->drawable.width + (bw<<1)),
|
||||||
(int)(pWin->drawable.height + (bw<<1)));
|
(int)(pWin->drawable.height + (bw<<1)));
|
||||||
#ifdef SHAPE
|
|
||||||
if (wBoundingShape (pWin)) {
|
if (wBoundingShape (pWin)) {
|
||||||
ScreenPtr pScreen;
|
ScreenPtr pScreen;
|
||||||
pScreen = pWin->drawable.pScreen;
|
pScreen = pWin->drawable.pScreen;
|
||||||
|
@ -1781,7 +1772,6 @@ SetBorderSize (WindowPtr pWin)
|
||||||
REGION_UNION(pScreen, &pWin->borderSize, &pWin->borderSize,
|
REGION_UNION(pScreen, &pWin->borderSize, &pWin->borderSize,
|
||||||
&pWin->winSize);
|
&pWin->winSize);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
REGION_COPY(pWin->drawable.pScreen, &pWin->borderSize,
|
REGION_COPY(pWin->drawable.pScreen, &pWin->borderSize,
|
||||||
&pWin->winSize);
|
&pWin->winSize);
|
||||||
|
@ -1972,7 +1962,6 @@ WindowExtents(
|
||||||
return(pBox);
|
return(pBox);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
#define IS_SHAPED(pWin) (wBoundingShape (pWin) != (RegionPtr) NULL)
|
#define IS_SHAPED(pWin) (wBoundingShape (pWin) != (RegionPtr) NULL)
|
||||||
|
|
||||||
static RegionPtr
|
static RegionPtr
|
||||||
|
@ -2017,7 +2006,6 @@ ShapeOverlap (
|
||||||
REGION_DESTROY(pScreen, pSibRgn);
|
REGION_DESTROY(pScreen, pSibRgn);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
AnyWindowOverlapsMe(
|
AnyWindowOverlapsMe(
|
||||||
|
@ -2035,9 +2023,7 @@ AnyWindowOverlapsMe(
|
||||||
{
|
{
|
||||||
sbox = WindowExtents(pSib, &sboxrec);
|
sbox = WindowExtents(pSib, &sboxrec);
|
||||||
if (BOXES_OVERLAP(sbox, box)
|
if (BOXES_OVERLAP(sbox, box)
|
||||||
#ifdef SHAPE
|
|
||||||
&& ShapeOverlap (pWin, box, pSib, sbox)
|
&& ShapeOverlap (pWin, box, pSib, sbox)
|
||||||
#endif
|
|
||||||
)
|
)
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
@ -2060,9 +2046,7 @@ IOverlapAnyWindow(
|
||||||
{
|
{
|
||||||
sbox = WindowExtents(pSib, &sboxrec);
|
sbox = WindowExtents(pSib, &sboxrec);
|
||||||
if (BOXES_OVERLAP(sbox, box)
|
if (BOXES_OVERLAP(sbox, box)
|
||||||
#ifdef SHAPE
|
|
||||||
&& ShapeOverlap (pWin, box, pSib, sbox)
|
&& ShapeOverlap (pWin, box, pSib, sbox)
|
||||||
#endif
|
|
||||||
)
|
)
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
@ -3617,14 +3601,12 @@ CheckWindowOptionalNeed (WindowPtr w)
|
||||||
return;
|
return;
|
||||||
if (optional->backingPixel != 0)
|
if (optional->backingPixel != 0)
|
||||||
return;
|
return;
|
||||||
#ifdef SHAPE
|
|
||||||
if (optional->boundingShape != NULL)
|
if (optional->boundingShape != NULL)
|
||||||
return;
|
return;
|
||||||
if (optional->clipShape != NULL)
|
if (optional->clipShape != NULL)
|
||||||
return;
|
return;
|
||||||
if (optional->inputShape != NULL)
|
if (optional->inputShape != NULL)
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
if (optional->inputMasks != NULL)
|
if (optional->inputMasks != NULL)
|
||||||
return;
|
return;
|
||||||
if (optional->deviceCursors != NULL)
|
if (optional->deviceCursors != NULL)
|
||||||
|
@ -3681,11 +3663,9 @@ MakeWindowOptional (WindowPtr pWin)
|
||||||
optional->userProps = NULL;
|
optional->userProps = NULL;
|
||||||
optional->backingBitPlanes = ~0L;
|
optional->backingBitPlanes = ~0L;
|
||||||
optional->backingPixel = 0;
|
optional->backingPixel = 0;
|
||||||
#ifdef SHAPE
|
|
||||||
optional->boundingShape = NULL;
|
optional->boundingShape = NULL;
|
||||||
optional->clipShape = NULL;
|
optional->clipShape = NULL;
|
||||||
optional->inputShape = NULL;
|
optional->inputShape = NULL;
|
||||||
#endif
|
|
||||||
optional->inputMasks = NULL;
|
optional->inputMasks = NULL;
|
||||||
optional->deviceCursors = NULL;
|
optional->deviceCursors = NULL;
|
||||||
|
|
||||||
|
|
|
@ -231,9 +231,7 @@ typedef struct _DMXScreenInfo {
|
||||||
InstallColormapProcPtr InstallColormap;
|
InstallColormapProcPtr InstallColormap;
|
||||||
StoreColorsProcPtr StoreColors;
|
StoreColorsProcPtr StoreColors;
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
SetShapeProcPtr SetShape;
|
SetShapeProcPtr SetShape;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
CreatePictureProcPtr CreatePicture;
|
CreatePictureProcPtr CreatePicture;
|
||||||
|
|
|
@ -84,9 +84,7 @@ typedef XID KeySym64;
|
||||||
#include <X11/cursorfont.h>
|
#include <X11/cursorfont.h>
|
||||||
#include <X11/Xmu/SysUtil.h> /* For XmuSnprintf */
|
#include <X11/Xmu/SysUtil.h> /* For XmuSnprintf */
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
#include <X11/extensions/shape.h>
|
#include <X11/extensions/shape.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
#include <X11/extensions/Xrender.h>
|
#include <X11/extensions/Xrender.h>
|
||||||
|
|
|
@ -340,10 +340,8 @@ Bool dmxScreenInit(int idx, ScreenPtr pScreen, int argc, char *argv[])
|
||||||
DMX_WRAP(InstallColormap, dmxInstallColormap, dmxScreen, pScreen);
|
DMX_WRAP(InstallColormap, dmxInstallColormap, dmxScreen, pScreen);
|
||||||
DMX_WRAP(StoreColors, dmxStoreColors, dmxScreen, pScreen);
|
DMX_WRAP(StoreColors, dmxStoreColors, dmxScreen, pScreen);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
/* Wrap Shape functions */
|
/* Wrap Shape functions */
|
||||||
DMX_WRAP(SetShape, dmxSetShape, dmxScreen, pScreen);
|
DMX_WRAP(SetShape, dmxSetShape, dmxScreen, pScreen);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dmxCreateDefColormap(pScreen))
|
if (!dmxCreateDefColormap(pScreen))
|
||||||
|
@ -434,10 +432,8 @@ Bool dmxCloseScreen(int idx, ScreenPtr pScreen)
|
||||||
xfree(dmxScreen->shadow);
|
xfree(dmxScreen->shadow);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
/* Unwrap Shape functions */
|
/* Unwrap Shape functions */
|
||||||
DMX_UNWRAP(SetShape, dmxScreen, pScreen);
|
DMX_UNWRAP(SetShape, dmxScreen, pScreen);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Unwrap the pScreen functions */
|
/* Unwrap the pScreen functions */
|
||||||
DMX_UNWRAP(CreateGC, dmxScreen, pScreen);
|
DMX_UNWRAP(CreateGC, dmxScreen, pScreen);
|
||||||
|
|
|
@ -57,9 +57,7 @@ static void dmxDoChangeWindowAttributes(WindowPtr pWindow,
|
||||||
unsigned long *mask,
|
unsigned long *mask,
|
||||||
XSetWindowAttributes *attribs);
|
XSetWindowAttributes *attribs);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
static void dmxDoSetShape(WindowPtr pWindow);
|
static void dmxDoSetShape(WindowPtr pWindow);
|
||||||
#endif
|
|
||||||
|
|
||||||
/** Initialize the private area for the window functions. */
|
/** Initialize the private area for the window functions. */
|
||||||
Bool dmxInitWindow(ScreenPtr pScreen)
|
Bool dmxInitWindow(ScreenPtr pScreen)
|
||||||
|
@ -289,9 +287,7 @@ void dmxCreateAndRealizeWindow(WindowPtr pWindow, Bool doSync)
|
||||||
|
|
||||||
pWinPriv->window = dmxCreateNonRootWindow(pWindow);
|
pWinPriv->window = dmxCreateNonRootWindow(pWindow);
|
||||||
if (pWinPriv->restacked) dmxDoRestackWindow(pWindow);
|
if (pWinPriv->restacked) dmxDoRestackWindow(pWindow);
|
||||||
#ifdef SHAPE
|
|
||||||
if (pWinPriv->isShaped) dmxDoSetShape(pWindow);
|
if (pWinPriv->isShaped) dmxDoSetShape(pWindow);
|
||||||
#endif
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
if (pWinPriv->hasPict) dmxCreatePictureList(pWindow);
|
if (pWinPriv->hasPict) dmxCreatePictureList(pWindow);
|
||||||
#endif
|
#endif
|
||||||
|
@ -323,9 +319,7 @@ Bool dmxCreateWindow(WindowPtr pWindow)
|
||||||
pWinPriv->mapped = FALSE;
|
pWinPriv->mapped = FALSE;
|
||||||
pWinPriv->restacked = FALSE;
|
pWinPriv->restacked = FALSE;
|
||||||
pWinPriv->attribMask = 0;
|
pWinPriv->attribMask = 0;
|
||||||
#ifdef SHAPE
|
|
||||||
pWinPriv->isShaped = FALSE;
|
pWinPriv->isShaped = FALSE;
|
||||||
#endif
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
pWinPriv->hasPict = FALSE;
|
pWinPriv->hasPict = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
@ -942,7 +936,6 @@ void dmxChangeBorderWidth(WindowPtr pWindow, unsigned int width)
|
||||||
DMX_WRAP(ChangeBorderWidth, dmxChangeBorderWidth, dmxScreen, pScreen);
|
DMX_WRAP(ChangeBorderWidth, dmxChangeBorderWidth, dmxScreen, pScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
static void dmxDoSetShape(WindowPtr pWindow)
|
static void dmxDoSetShape(WindowPtr pWindow)
|
||||||
{
|
{
|
||||||
ScreenPtr pScreen = pWindow->drawable.pScreen;
|
ScreenPtr pScreen = pWindow->drawable.pScreen;
|
||||||
|
@ -1029,4 +1022,3 @@ void dmxSetShape(WindowPtr pWindow)
|
||||||
|
|
||||||
DMX_WRAP(SetShape, dmxSetShape, dmxScreen, pScreen);
|
DMX_WRAP(SetShape, dmxSetShape, dmxScreen, pScreen);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
|
@ -48,9 +48,7 @@ typedef struct _dmxWinPriv {
|
||||||
unsigned long attribMask;
|
unsigned long attribMask;
|
||||||
Colormap cmap;
|
Colormap cmap;
|
||||||
Visual *visual;
|
Visual *visual;
|
||||||
#ifdef SHAPE
|
|
||||||
Bool isShaped;
|
Bool isShaped;
|
||||||
#endif
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
Bool hasPict;
|
Bool hasPict;
|
||||||
#endif
|
#endif
|
||||||
|
@ -97,10 +95,8 @@ extern void dmxResizeRootWindow(WindowPtr pRoot,
|
||||||
|
|
||||||
extern Bool dmxBEDestroyWindow(WindowPtr pWindow);
|
extern Bool dmxBEDestroyWindow(WindowPtr pWindow);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
/* Support for shape extension */
|
/* Support for shape extension */
|
||||||
extern void dmxSetShape(WindowPtr pWindow);
|
extern void dmxSetShape(WindowPtr pWindow);
|
||||||
#endif
|
|
||||||
|
|
||||||
/** Private index. \see dmxwindow.c \see dmxscrinit.c */
|
/** Private index. \see dmxwindow.c \see dmxscrinit.c */
|
||||||
extern DevPrivateKey dmxWinPrivateKey;
|
extern DevPrivateKey dmxWinPrivateKey;
|
||||||
|
|
|
@ -47,15 +47,6 @@ static ExtensionModule extensionModules[] = {
|
||||||
NULL
|
NULL
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHAPE
|
|
||||||
{
|
|
||||||
ShapeExtensionInit,
|
|
||||||
SHAPENAME,
|
|
||||||
&noShapeExtension,
|
|
||||||
NULL,
|
|
||||||
NULL
|
|
||||||
},
|
|
||||||
#endif
|
|
||||||
#ifdef MULTIBUFFER
|
#ifdef MULTIBUFFER
|
||||||
{
|
{
|
||||||
MultibufferExtensionInit,
|
MultibufferExtensionInit,
|
||||||
|
|
|
@ -7,10 +7,8 @@
|
||||||
#define INITARGS void
|
#define INITARGS void
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
#define _SHAPE_SERVER_ /* don't want Xlib structures */
|
#define _SHAPE_SERVER_ /* don't want Xlib structures */
|
||||||
#include <X11/extensions/shapestr.h>
|
#include <X11/extensions/shapestr.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MULTIBUFFER
|
#ifdef MULTIBUFFER
|
||||||
extern void MultibufferExtensionInit(INITARGS);
|
extern void MultibufferExtensionInit(INITARGS);
|
||||||
|
|
|
@ -374,9 +374,6 @@ _X_HIDDEN void *dixLookupTab[] = {
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
SYMVAR(noRenderExtension)
|
SYMVAR(noRenderExtension)
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHAPE
|
|
||||||
SYMVAR(noShapeExtension)
|
|
||||||
#endif
|
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
SYMVAR(noSecurityExtension)
|
SYMVAR(noSecurityExtension)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -331,10 +331,8 @@ xnestOpenScreen(int index, ScreenPtr pScreen, int argc, char *argv[])
|
||||||
if (!miScreenDevPrivateInit(pScreen, xnestWidth, NULL))
|
if (!miScreenDevPrivateInit(pScreen, xnestWidth, NULL))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
/* overwrite miSetShape with our own */
|
/* overwrite miSetShape with our own */
|
||||||
pScreen->SetShape = xnestSetShape;
|
pScreen->SetShape = xnestSetShape;
|
||||||
#endif /* SHAPE */
|
|
||||||
|
|
||||||
/* devPrivates */
|
/* devPrivates */
|
||||||
|
|
||||||
|
|
|
@ -131,12 +131,10 @@ xnestCreateWindow(WindowPtr pWin)
|
||||||
xnestWindowPriv(pWin)->sibling_above = None;
|
xnestWindowPriv(pWin)->sibling_above = None;
|
||||||
if (pWin->nextSib)
|
if (pWin->nextSib)
|
||||||
xnestWindowPriv(pWin->nextSib)->sibling_above = xnestWindow(pWin);
|
xnestWindowPriv(pWin->nextSib)->sibling_above = xnestWindow(pWin);
|
||||||
#ifdef SHAPE
|
|
||||||
xnestWindowPriv(pWin)->bounding_shape =
|
xnestWindowPriv(pWin)->bounding_shape =
|
||||||
REGION_CREATE(pWin->drawable.pScreen, NULL, 1);
|
REGION_CREATE(pWin->drawable.pScreen, NULL, 1);
|
||||||
xnestWindowPriv(pWin)->clip_shape =
|
xnestWindowPriv(pWin)->clip_shape =
|
||||||
REGION_CREATE(pWin->drawable.pScreen, NULL, 1);
|
REGION_CREATE(pWin->drawable.pScreen, NULL, 1);
|
||||||
#endif /* SHAPE */
|
|
||||||
|
|
||||||
if (!pWin->parent) /* only the root window will have the right colormap */
|
if (!pWin->parent) /* only the root window will have the right colormap */
|
||||||
xnestSetInstalledColormapWindows(pWin->drawable.pScreen);
|
xnestSetInstalledColormapWindows(pWin->drawable.pScreen);
|
||||||
|
@ -150,12 +148,10 @@ xnestDestroyWindow(WindowPtr pWin)
|
||||||
if (pWin->nextSib)
|
if (pWin->nextSib)
|
||||||
xnestWindowPriv(pWin->nextSib)->sibling_above =
|
xnestWindowPriv(pWin->nextSib)->sibling_above =
|
||||||
xnestWindowPriv(pWin)->sibling_above;
|
xnestWindowPriv(pWin)->sibling_above;
|
||||||
#ifdef SHAPE
|
|
||||||
REGION_DESTROY(pWin->drawable.pScreen,
|
REGION_DESTROY(pWin->drawable.pScreen,
|
||||||
xnestWindowPriv(pWin)->bounding_shape);
|
xnestWindowPriv(pWin)->bounding_shape);
|
||||||
REGION_DESTROY(pWin->drawable.pScreen,
|
REGION_DESTROY(pWin->drawable.pScreen,
|
||||||
xnestWindowPriv(pWin)->clip_shape);
|
xnestWindowPriv(pWin)->clip_shape);
|
||||||
#endif
|
|
||||||
XDestroyWindow(xnestDisplay, xnestWindow(pWin));
|
XDestroyWindow(xnestDisplay, xnestWindow(pWin));
|
||||||
xnestWindowPriv(pWin)->window = None;
|
xnestWindowPriv(pWin)->window = None;
|
||||||
|
|
||||||
|
@ -362,9 +358,7 @@ Bool
|
||||||
xnestRealizeWindow(WindowPtr pWin)
|
xnestRealizeWindow(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
xnestConfigureWindow(pWin, CWStackingOrder);
|
xnestConfigureWindow(pWin, CWStackingOrder);
|
||||||
#ifdef SHAPE
|
|
||||||
xnestShapeWindow(pWin);
|
xnestShapeWindow(pWin);
|
||||||
#endif /* SHAPE */
|
|
||||||
XMapWindow(xnestDisplay, xnestWindow(pWin));
|
XMapWindow(xnestDisplay, xnestWindow(pWin));
|
||||||
|
|
||||||
return True;
|
return True;
|
||||||
|
@ -387,9 +381,7 @@ void
|
||||||
xnestClipNotify(WindowPtr pWin, int dx, int dy)
|
xnestClipNotify(WindowPtr pWin, int dx, int dy)
|
||||||
{
|
{
|
||||||
xnestConfigureWindow(pWin, CWStackingOrder);
|
xnestConfigureWindow(pWin, CWStackingOrder);
|
||||||
#ifdef SHAPE
|
|
||||||
xnestShapeWindow(pWin);
|
xnestShapeWindow(pWin);
|
||||||
#endif /* SHAPE */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
|
@ -426,7 +418,6 @@ xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr other_exposed)
|
||||||
miWindowExposures(pWin, pRgn, other_exposed);
|
miWindowExposures(pWin, pRgn, other_exposed);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
void
|
void
|
||||||
xnestSetShape(WindowPtr pWin)
|
xnestSetShape(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
|
@ -529,4 +520,3 @@ xnestShapeWindow(WindowPtr pWin)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* SHAPE */
|
|
||||||
|
|
|
@ -24,10 +24,8 @@ typedef struct {
|
||||||
unsigned int height;
|
unsigned int height;
|
||||||
unsigned int border_width;
|
unsigned int border_width;
|
||||||
Window sibling_above;
|
Window sibling_above;
|
||||||
#ifdef SHAPE
|
|
||||||
RegionPtr bounding_shape;
|
RegionPtr bounding_shape;
|
||||||
RegionPtr clip_shape;
|
RegionPtr clip_shape;
|
||||||
#endif /* SHAPE */
|
|
||||||
} xnestPrivWin;
|
} xnestPrivWin;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -68,9 +66,7 @@ void xnestCopyWindow(WindowPtr pWin, xPoint oldOrigin, RegionPtr oldRegion);
|
||||||
void xnestClipNotify(WindowPtr pWin, int dx, int dy);
|
void xnestClipNotify(WindowPtr pWin, int dx, int dy);
|
||||||
void xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn,
|
void xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn,
|
||||||
RegionPtr other_exposed);
|
RegionPtr other_exposed);
|
||||||
#ifdef SHAPE
|
|
||||||
void xnestSetShape(WindowPtr pWin);
|
void xnestSetShape(WindowPtr pWin);
|
||||||
void xnestShapeWindow(WindowPtr pWin);
|
void xnestShapeWindow(WindowPtr pWin);
|
||||||
#endif /* SHAPE */
|
|
||||||
|
|
||||||
#endif /* XNESTWINDOW_H */
|
#endif /* XNESTWINDOW_H */
|
||||||
|
|
|
@ -586,9 +586,7 @@ typedef struct _winPrivScreenRec
|
||||||
ReparentWindowProcPtr ReparentWindow;
|
ReparentWindowProcPtr ReparentWindow;
|
||||||
ResizeWindowProcPtr ResizeWindow;
|
ResizeWindowProcPtr ResizeWindow;
|
||||||
MoveWindowProcPtr MoveWindow;
|
MoveWindowProcPtr MoveWindow;
|
||||||
#ifdef SHAPE
|
|
||||||
SetShapeProcPtr SetShape;
|
SetShapeProcPtr SetShape;
|
||||||
#endif
|
|
||||||
|
|
||||||
winCursorRec cursor;
|
winCursorRec cursor;
|
||||||
} winPrivScreenRec;
|
} winPrivScreenRec;
|
||||||
|
@ -1196,10 +1194,8 @@ winUnmapWindowRootless (WindowPtr pWindow);
|
||||||
Bool
|
Bool
|
||||||
winMapWindowRootless (WindowPtr pWindow);
|
winMapWindowRootless (WindowPtr pWindow);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
void
|
void
|
||||||
winSetShapeRootless (WindowPtr pWindow);
|
winSetShapeRootless (WindowPtr pWindow);
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1215,7 +1211,6 @@ winXIconToHICON (WindowPtr pWin, int iconSize);
|
||||||
* winmultiwindowshape.c
|
* winmultiwindowshape.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# ifdef SHAPE
|
|
||||||
void
|
void
|
||||||
winReshapeMultiWindow (WindowPtr pWin);
|
winReshapeMultiWindow (WindowPtr pWin);
|
||||||
|
|
||||||
|
@ -1224,7 +1219,6 @@ winSetShapeMultiWindow (WindowPtr pWindow);
|
||||||
|
|
||||||
void
|
void
|
||||||
winUpdateRgnMultiWindow (WindowPtr pWindow);
|
winUpdateRgnMultiWindow (WindowPtr pWindow);
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
#ifdef HAVE_XWIN_CONFIG_H
|
#ifdef HAVE_XWIN_CONFIG_H
|
||||||
#include <xwin-config.h>
|
#include <xwin-config.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHAPE
|
|
||||||
|
|
||||||
#include "win.h"
|
#include "win.h"
|
||||||
|
|
||||||
|
@ -208,4 +207,3 @@ winReshapeMultiWindow (WindowPtr pWin)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
|
@ -352,11 +352,9 @@ winMapWindowMultiWindow (WindowPtr pWin)
|
||||||
/* Refresh/redisplay the Windows window associated with this X window */
|
/* Refresh/redisplay the Windows window associated with this X window */
|
||||||
winUpdateWindowsWindow (pWin);
|
winUpdateWindowsWindow (pWin);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
/* Update the Windows window's shape */
|
/* Update the Windows window's shape */
|
||||||
winReshapeMultiWindow (pWin);
|
winReshapeMultiWindow (pWin);
|
||||||
winUpdateRgnMultiWindow (pWin);
|
winUpdateRgnMultiWindow (pWin);
|
||||||
#endif
|
|
||||||
|
|
||||||
return fResult;
|
return fResult;
|
||||||
}
|
}
|
||||||
|
|
|
@ -478,9 +478,7 @@ winFinishScreenInitFB (int index,
|
||||||
WRAP(UnrealizeWindow);
|
WRAP(UnrealizeWindow);
|
||||||
WRAP(PositionWindow);
|
WRAP(PositionWindow);
|
||||||
WRAP(ChangeWindowAttributes);
|
WRAP(ChangeWindowAttributes);
|
||||||
#ifdef SHAPE
|
|
||||||
WRAP(SetShape);
|
WRAP(SetShape);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Assign rootless window procedures to be top level procedures */
|
/* Assign rootless window procedures to be top level procedures */
|
||||||
pScreen->CreateWindow = winCreateWindowRootless;
|
pScreen->CreateWindow = winCreateWindowRootless;
|
||||||
|
@ -489,9 +487,7 @@ winFinishScreenInitFB (int index,
|
||||||
/*pScreen->ChangeWindowAttributes = winChangeWindowAttributesRootless;*/
|
/*pScreen->ChangeWindowAttributes = winChangeWindowAttributesRootless;*/
|
||||||
pScreen->RealizeWindow = winMapWindowRootless;
|
pScreen->RealizeWindow = winMapWindowRootless;
|
||||||
pScreen->UnrealizeWindow = winUnmapWindowRootless;
|
pScreen->UnrealizeWindow = winUnmapWindowRootless;
|
||||||
#ifdef SHAPE
|
|
||||||
pScreen->SetShape = winSetShapeRootless;
|
pScreen->SetShape = winSetShapeRootless;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Undefine the WRAP macro, as it is not needed elsewhere */
|
/* Undefine the WRAP macro, as it is not needed elsewhere */
|
||||||
#undef WRAP
|
#undef WRAP
|
||||||
|
@ -523,9 +519,7 @@ winFinishScreenInitFB (int index,
|
||||||
WRAP(ResizeWindow);
|
WRAP(ResizeWindow);
|
||||||
WRAP(MoveWindow);
|
WRAP(MoveWindow);
|
||||||
WRAP(CopyWindow);
|
WRAP(CopyWindow);
|
||||||
#ifdef SHAPE
|
|
||||||
WRAP(SetShape);
|
WRAP(SetShape);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Assign multi-window window procedures to be top level procedures */
|
/* Assign multi-window window procedures to be top level procedures */
|
||||||
pScreen->CreateWindow = winCreateWindowMultiWindow;
|
pScreen->CreateWindow = winCreateWindowMultiWindow;
|
||||||
|
@ -539,9 +533,7 @@ winFinishScreenInitFB (int index,
|
||||||
pScreen->ResizeWindow = winResizeWindowMultiWindow;
|
pScreen->ResizeWindow = winResizeWindowMultiWindow;
|
||||||
pScreen->MoveWindow = winMoveWindowMultiWindow;
|
pScreen->MoveWindow = winMoveWindowMultiWindow;
|
||||||
pScreen->CopyWindow = winCopyWindowMultiWindow;
|
pScreen->CopyWindow = winCopyWindowMultiWindow;
|
||||||
#ifdef SHAPE
|
|
||||||
pScreen->SetShape = winSetShapeMultiWindow;
|
pScreen->SetShape = winSetShapeMultiWindow;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Undefine the WRAP macro, as it is not needed elsewhere */
|
/* Undefine the WRAP macro, as it is not needed elsewhere */
|
||||||
#undef WRAP
|
#undef WRAP
|
||||||
|
|
|
@ -46,11 +46,9 @@ static
|
||||||
void
|
void
|
||||||
winUpdateRgnRootless (WindowPtr pWindow);
|
winUpdateRgnRootless (WindowPtr pWindow);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
static
|
static
|
||||||
void
|
void
|
||||||
winReshapeRootless (WindowPtr pWin);
|
winReshapeRootless (WindowPtr pWin);
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef XWIN_NATIVEGDI
|
#ifdef XWIN_NATIVEGDI
|
||||||
|
@ -447,9 +445,7 @@ winMapWindowRootless (WindowPtr pWin)
|
||||||
fResult = (*pScreen->RealizeWindow)(pWin);
|
fResult = (*pScreen->RealizeWindow)(pWin);
|
||||||
WIN_WRAP(RealizeWindow, winMapWindowRootless);
|
WIN_WRAP(RealizeWindow, winMapWindowRootless);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
winReshapeRootless (pWin);
|
winReshapeRootless (pWin);
|
||||||
#endif
|
|
||||||
|
|
||||||
winUpdateRgnRootless (pWin);
|
winUpdateRgnRootless (pWin);
|
||||||
|
|
||||||
|
@ -457,7 +453,6 @@ winMapWindowRootless (WindowPtr pWin)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
void
|
void
|
||||||
winSetShapeRootless (WindowPtr pWin)
|
winSetShapeRootless (WindowPtr pWin)
|
||||||
{
|
{
|
||||||
|
@ -478,7 +473,6 @@ winSetShapeRootless (WindowPtr pWin)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -569,7 +563,6 @@ winUpdateRgnRootless (WindowPtr pWin)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
static
|
static
|
||||||
void
|
void
|
||||||
winReshapeRootless (WindowPtr pWin)
|
winReshapeRootless (WindowPtr pWin)
|
||||||
|
@ -646,4 +639,3 @@ winReshapeRootless (WindowPtr pWin)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
|
@ -313,13 +313,11 @@ extern void SetMaskForEvent(
|
||||||
Mask /* mask */,
|
Mask /* mask */,
|
||||||
int /* event */);
|
int /* event */);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
extern void ConfineToShape(
|
extern void ConfineToShape(
|
||||||
DeviceIntPtr /* pDev */,
|
DeviceIntPtr /* pDev */,
|
||||||
RegionPtr /* shape */,
|
RegionPtr /* shape */,
|
||||||
int* /* px */,
|
int* /* px */,
|
||||||
int* /* py */);
|
int* /* py */);
|
||||||
#endif
|
|
||||||
|
|
||||||
extern Bool IsParent(
|
extern Bool IsParent(
|
||||||
WindowPtr /* maybeparent */,
|
WindowPtr /* maybeparent */,
|
||||||
|
|
|
@ -89,10 +89,6 @@ extern Bool noRRExtension;
|
||||||
extern Bool noRenderExtension;
|
extern Bool noRenderExtension;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
extern Bool noShapeExtension;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
extern Bool noSecurityExtension;
|
extern Bool noSecurityExtension;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -314,9 +314,7 @@ typedef struct {
|
||||||
CursorPtr current;
|
CursorPtr current;
|
||||||
BoxRec hotLimits; /* logical constraints of hot spot */
|
BoxRec hotLimits; /* logical constraints of hot spot */
|
||||||
Bool confined; /* confined to screen */
|
Bool confined; /* confined to screen */
|
||||||
#if defined(SHAPE) || defined(PANORAMIX)
|
|
||||||
RegionPtr hotShape; /* additional logical shape constraint */
|
RegionPtr hotShape; /* additional logical shape constraint */
|
||||||
#endif
|
|
||||||
BoxRec physLimits; /* physical constraints of hot spot */
|
BoxRec physLimits; /* physical constraints of hot spot */
|
||||||
WindowPtr win; /* window of logical position */
|
WindowPtr win; /* window of logical position */
|
||||||
HotSpot hot; /* logical pointer position */
|
HotSpot hot; /* logical pointer position */
|
||||||
|
|
|
@ -426,10 +426,8 @@ typedef void (* ReparentWindowProcPtr)(
|
||||||
WindowPtr /*pWin*/,
|
WindowPtr /*pWin*/,
|
||||||
WindowPtr /*pPriorParent*/);
|
WindowPtr /*pPriorParent*/);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
typedef void (* SetShapeProcPtr)(
|
typedef void (* SetShapeProcPtr)(
|
||||||
WindowPtr /*pWin*/);
|
WindowPtr /*pWin*/);
|
||||||
#endif /* SHAPE */
|
|
||||||
|
|
||||||
typedef void (* ChangeBorderWidthProcPtr)(
|
typedef void (* ChangeBorderWidthProcPtr)(
|
||||||
WindowPtr /*pWin*/,
|
WindowPtr /*pWin*/,
|
||||||
|
@ -589,9 +587,7 @@ typedef struct _Screen {
|
||||||
HandleExposuresProcPtr HandleExposures;
|
HandleExposuresProcPtr HandleExposures;
|
||||||
ReparentWindowProcPtr ReparentWindow;
|
ReparentWindowProcPtr ReparentWindow;
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
SetShapeProcPtr SetShape;
|
SetShapeProcPtr SetShape;
|
||||||
#endif /* SHAPE */
|
|
||||||
|
|
||||||
ChangeBorderWidthProcPtr ChangeBorderWidth;
|
ChangeBorderWidthProcPtr ChangeBorderWidth;
|
||||||
MarkUnrealizedWindowProcPtr MarkUnrealizedWindow;
|
MarkUnrealizedWindowProcPtr MarkUnrealizedWindow;
|
||||||
|
|
|
@ -108,11 +108,9 @@ typedef struct _WindowOpt {
|
||||||
PropertyPtr userProps; /* default: NULL */
|
PropertyPtr userProps; /* default: NULL */
|
||||||
unsigned long backingBitPlanes; /* default: ~0L */
|
unsigned long backingBitPlanes; /* default: ~0L */
|
||||||
unsigned long backingPixel; /* default: 0 */
|
unsigned long backingPixel; /* default: 0 */
|
||||||
#ifdef SHAPE
|
|
||||||
RegionPtr boundingShape; /* default: NULL */
|
RegionPtr boundingShape; /* default: NULL */
|
||||||
RegionPtr clipShape; /* default: NULL */
|
RegionPtr clipShape; /* default: NULL */
|
||||||
RegionPtr inputShape; /* default: NULL */
|
RegionPtr inputShape; /* default: NULL */
|
||||||
#endif
|
|
||||||
struct _OtherInputMasks *inputMasks; /* default: NULL */
|
struct _OtherInputMasks *inputMasks; /* default: NULL */
|
||||||
DevCursorList deviceCursors; /* default: NULL */
|
DevCursorList deviceCursors; /* default: NULL */
|
||||||
struct _GenericClientMasks *geMasks; /* default: NULL */
|
struct _GenericClientMasks *geMasks; /* default: NULL */
|
||||||
|
@ -217,21 +215,15 @@ extern Mask DontPropagateMasks[];
|
||||||
#define wUserProps(w) wUseDefault(w, userProps, NULL)
|
#define wUserProps(w) wUseDefault(w, userProps, NULL)
|
||||||
#define wBackingBitPlanes(w) wUseDefault(w, backingBitPlanes, ~0L)
|
#define wBackingBitPlanes(w) wUseDefault(w, backingBitPlanes, ~0L)
|
||||||
#define wBackingPixel(w) wUseDefault(w, backingPixel, 0)
|
#define wBackingPixel(w) wUseDefault(w, backingPixel, 0)
|
||||||
#ifdef SHAPE
|
|
||||||
#define wBoundingShape(w) wUseDefault(w, boundingShape, NULL)
|
#define wBoundingShape(w) wUseDefault(w, boundingShape, NULL)
|
||||||
#define wClipShape(w) wUseDefault(w, clipShape, NULL)
|
#define wClipShape(w) wUseDefault(w, clipShape, NULL)
|
||||||
#define wInputShape(w) wUseDefault(w, inputShape, NULL)
|
#define wInputShape(w) wUseDefault(w, inputShape, NULL)
|
||||||
#endif
|
|
||||||
#define wClient(w) (clients[CLIENT_ID((w)->drawable.id)])
|
#define wClient(w) (clients[CLIENT_ID((w)->drawable.id)])
|
||||||
#define wBorderWidth(w) ((int) (w)->borderWidth)
|
#define wBorderWidth(w) ((int) (w)->borderWidth)
|
||||||
|
|
||||||
/* true when w needs a border drawn. */
|
/* true when w needs a border drawn. */
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
#define HasBorder(w) ((w)->borderWidth || wClipShape(w))
|
#define HasBorder(w) ((w)->borderWidth || wClipShape(w))
|
||||||
#else
|
|
||||||
#define HasBorder(w) ((w)->borderWidth)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct _ScreenSaverStuff {
|
typedef struct _ScreenSaverStuff {
|
||||||
WindowPtr pWindow;
|
WindowPtr pWindow;
|
||||||
|
|
|
@ -265,7 +265,6 @@ miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
|
||||||
extents = pGC->graphicsExposures &&
|
extents = pGC->graphicsExposures &&
|
||||||
(REGION_NUM_RECTS(&rgnExposed) > RECTLIMIT) &&
|
(REGION_NUM_RECTS(&rgnExposed) > RECTLIMIT) &&
|
||||||
(pDstDrawable->type != DRAWABLE_PIXMAP);
|
(pDstDrawable->type != DRAWABLE_PIXMAP);
|
||||||
#ifdef SHAPE
|
|
||||||
if (pSrcWin)
|
if (pSrcWin)
|
||||||
{
|
{
|
||||||
RegionPtr region;
|
RegionPtr region;
|
||||||
|
@ -279,7 +278,6 @@ miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
|
||||||
(RECT_IN_REGION(pscr, region, &srcBox) != rgnIN))
|
(RECT_IN_REGION(pscr, region, &srcBox) != rgnIN))
|
||||||
extents = FALSE;
|
extents = FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (extents)
|
if (extents)
|
||||||
{
|
{
|
||||||
expBox = *REGION_EXTENTS(pscr, &rgnExposed);
|
expBox = *REGION_EXTENTS(pscr, &rgnExposed);
|
||||||
|
|
|
@ -116,9 +116,6 @@ extern Bool noRRExtension;
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
extern Bool noRenderExtension;
|
extern Bool noRenderExtension;
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHAPE
|
|
||||||
extern Bool noShapeExtension;
|
|
||||||
#endif
|
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
extern Bool noSecurityExtension;
|
extern Bool noSecurityExtension;
|
||||||
#endif
|
#endif
|
||||||
|
@ -349,9 +346,6 @@ static ExtensionToggle ExtensionToggleList[] =
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
{ "RENDER", &noRenderExtension },
|
{ "RENDER", &noRenderExtension },
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHAPE
|
|
||||||
{ "SHAPE", &noShapeExtension },
|
|
||||||
#endif
|
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
{ "SECURITY", &noSecurityExtension },
|
{ "SECURITY", &noSecurityExtension },
|
||||||
#endif
|
#endif
|
||||||
|
@ -440,9 +434,7 @@ InitExtensions(int argc, char *argv[])
|
||||||
#ifdef INXQUARTZ
|
#ifdef INXQUARTZ
|
||||||
if(!noPseudoramiXExtension) PseudoramiXExtensionInit();
|
if(!noPseudoramiXExtension) PseudoramiXExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHAPE
|
ShapeExtensionInit();
|
||||||
if (!noShapeExtension) ShapeExtensionInit();
|
|
||||||
#endif
|
|
||||||
#ifdef MITSHM
|
#ifdef MITSHM
|
||||||
if (!noMITShmExtension) ShmExtensionInit();
|
if (!noMITShmExtension) ShmExtensionInit();
|
||||||
#endif
|
#endif
|
||||||
|
@ -548,6 +540,7 @@ InitVisualWrap()
|
||||||
/* List of built-in (statically linked) extensions */
|
/* List of built-in (statically linked) extensions */
|
||||||
static ExtensionModule staticExtensions[] = {
|
static ExtensionModule staticExtensions[] = {
|
||||||
{ GEExtensionInit, "Generic Event Extension", &noGEExtension, NULL, NULL},
|
{ GEExtensionInit, "Generic Event Extension", &noGEExtension, NULL, NULL},
|
||||||
|
{ ShapeExtensionInit, "SHAPE", NULL, NULL, NULL },
|
||||||
#ifdef MITSHM
|
#ifdef MITSHM
|
||||||
{ ShmExtensionInit, SHMNAME, &noMITShmExtension, NULL, NULL },
|
{ ShmExtensionInit, SHMNAME, &noMITShmExtension, NULL, NULL },
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -80,9 +80,7 @@ static void miOverlayResizeWindow(WindowPtr, int, int, unsigned int,
|
||||||
unsigned int, WindowPtr);
|
unsigned int, WindowPtr);
|
||||||
static void miOverlayClearToBackground(WindowPtr, int, int, int, int, Bool);
|
static void miOverlayClearToBackground(WindowPtr, int, int, int, int, Bool);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
static void miOverlaySetShape(WindowPtr);
|
static void miOverlaySetShape(WindowPtr);
|
||||||
#endif
|
|
||||||
static void miOverlayChangeBorderWidth(WindowPtr, unsigned int);
|
static void miOverlayChangeBorderWidth(WindowPtr, unsigned int);
|
||||||
|
|
||||||
#define MIOVERLAY_GET_SCREEN_PRIVATE(pScreen) ((miOverlayScreenPtr) \
|
#define MIOVERLAY_GET_SCREEN_PRIVATE(pScreen) ((miOverlayScreenPtr) \
|
||||||
|
@ -148,9 +146,7 @@ miInitOverlay(
|
||||||
pScreen->ResizeWindow = miOverlayResizeWindow;
|
pScreen->ResizeWindow = miOverlayResizeWindow;
|
||||||
pScreen->MarkWindow = miOverlayMarkWindow;
|
pScreen->MarkWindow = miOverlayMarkWindow;
|
||||||
pScreen->ClearToBackground = miOverlayClearToBackground;
|
pScreen->ClearToBackground = miOverlayClearToBackground;
|
||||||
#ifdef SHAPE
|
|
||||||
pScreen->SetShape = miOverlaySetShape;
|
pScreen->SetShape = miOverlaySetShape;
|
||||||
#endif
|
|
||||||
pScreen->ChangeBorderWidth = miOverlayChangeBorderWidth;
|
pScreen->ChangeBorderWidth = miOverlayChangeBorderWidth;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -480,7 +476,6 @@ miOverlayComputeClips(
|
||||||
break;
|
break;
|
||||||
case rgnPART:
|
case rgnPART:
|
||||||
newVis = VisibilityPartiallyObscured;
|
newVis = VisibilityPartiallyObscured;
|
||||||
#ifdef SHAPE
|
|
||||||
{
|
{
|
||||||
RegionPtr pBounding;
|
RegionPtr pBounding;
|
||||||
|
|
||||||
|
@ -499,7 +494,6 @@ miOverlayComputeClips(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
newVis = VisibilityFullyObscured;
|
newVis = VisibilityFullyObscured;
|
||||||
|
@ -1522,7 +1516,6 @@ miOverlayResizeWindow(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
static void
|
static void
|
||||||
miOverlaySetShape(WindowPtr pWin)
|
miOverlaySetShape(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
|
@ -1584,7 +1577,6 @@ miOverlaySetShape(WindowPtr pWin)
|
||||||
WindowsRestructured ();
|
WindowsRestructured ();
|
||||||
CheckCursorConfinement(pWin);
|
CheckCursorConfinement(pWin);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -265,9 +265,7 @@ miScreenInit(
|
||||||
pScreen->HandleExposures = miHandleValidateExposures;
|
pScreen->HandleExposures = miHandleValidateExposures;
|
||||||
pScreen->ReparentWindow = (ReparentWindowProcPtr) 0;
|
pScreen->ReparentWindow = (ReparentWindowProcPtr) 0;
|
||||||
pScreen->ChangeBorderWidth = miChangeBorderWidth;
|
pScreen->ChangeBorderWidth = miChangeBorderWidth;
|
||||||
#ifdef SHAPE
|
|
||||||
pScreen->SetShape = miSetShape;
|
pScreen->SetShape = miSetShape;
|
||||||
#endif
|
|
||||||
pScreen->MarkUnrealizedWindow = miMarkUnrealizedWindow;
|
pScreen->MarkUnrealizedWindow = miMarkUnrealizedWindow;
|
||||||
|
|
||||||
pScreen->SaveDoomedAreas = 0;
|
pScreen->SaveDoomedAreas = 0;
|
||||||
|
|
|
@ -103,7 +103,6 @@ Equipment Corporation.
|
||||||
|
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
/*
|
/*
|
||||||
* Compute the visibility of a shaped window
|
* Compute the visibility of a shaped window
|
||||||
*/
|
*/
|
||||||
|
@ -163,7 +162,6 @@ miShapedWindowIn (ScreenPtr pScreen, RegionPtr universe, RegionPtr bounding,
|
||||||
return rgnIN;
|
return rgnIN;
|
||||||
return rgnOUT;
|
return rgnOUT;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static GetRedirectBorderClipProcPtr miGetRedirectBorderClipProc;
|
static GetRedirectBorderClipProcPtr miGetRedirectBorderClipProc;
|
||||||
static SetRedirectBorderClipProcPtr miSetRedirectBorderClipProc;
|
static SetRedirectBorderClipProcPtr miSetRedirectBorderClipProc;
|
||||||
|
@ -269,7 +267,6 @@ miComputeClips (
|
||||||
break;
|
break;
|
||||||
case rgnPART:
|
case rgnPART:
|
||||||
newVis = VisibilityPartiallyObscured;
|
newVis = VisibilityPartiallyObscured;
|
||||||
#ifdef SHAPE
|
|
||||||
{
|
{
|
||||||
RegionPtr pBounding;
|
RegionPtr pBounding;
|
||||||
|
|
||||||
|
@ -289,7 +286,6 @@ miComputeClips (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
newVis = VisibilityFullyObscured;
|
newVis = VisibilityFullyObscured;
|
||||||
|
|
|
@ -909,7 +909,6 @@ miGetLayerWindow(WindowPtr pWin)
|
||||||
return pWin->firstChild;
|
return pWin->firstChild;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
/******
|
/******
|
||||||
*
|
*
|
||||||
* miSetShape
|
* miSetShape
|
||||||
|
@ -983,7 +982,6 @@ miSetShape(WindowPtr pWin)
|
||||||
WindowsRestructured ();
|
WindowsRestructured ();
|
||||||
CheckCursorConfinement(pWin);
|
CheckCursorConfinement(pWin);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Keeps the same inside(!) origin */
|
/* Keeps the same inside(!) origin */
|
||||||
|
|
||||||
|
|
|
@ -39,9 +39,7 @@
|
||||||
#include "rootless.h"
|
#include "rootless.h"
|
||||||
#include "fb.h"
|
#include "fb.h"
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#endif /* SHAPE */
|
|
||||||
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
#include "picturestr.h"
|
#include "picturestr.h"
|
||||||
|
@ -99,9 +97,7 @@ typedef struct _RootlessScreenRec {
|
||||||
MarkOverlappedWindowsProcPtr MarkOverlappedWindows;
|
MarkOverlappedWindowsProcPtr MarkOverlappedWindows;
|
||||||
ValidateTreeProcPtr ValidateTree;
|
ValidateTreeProcPtr ValidateTree;
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
SetShapeProcPtr SetShape;
|
SetShapeProcPtr SetShape;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
CompositeProcPtr Composite;
|
CompositeProcPtr Composite;
|
||||||
|
|
|
@ -666,9 +666,7 @@ RootlessWrap(ScreenPtr pScreen)
|
||||||
WRAP(UninstallColormap);
|
WRAP(UninstallColormap);
|
||||||
WRAP(StoreColors);
|
WRAP(StoreColors);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
WRAP(SetShape);
|
WRAP(SetShape);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
{
|
{
|
||||||
|
|
|
@ -104,7 +104,6 @@ Equipment Corporation.
|
||||||
|
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
/*
|
/*
|
||||||
* Compute the visibility of a shaped window
|
* Compute the visibility of a shaped window
|
||||||
*/
|
*/
|
||||||
|
@ -167,7 +166,6 @@ RootlessShapedWindowIn (pScreen, universe, bounding, rect, x, y)
|
||||||
return rgnIN;
|
return rgnIN;
|
||||||
return rgnOUT;
|
return rgnOUT;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#define HasParentRelativeBorder(w) (!(w)->borderIsPixel && \
|
#define HasParentRelativeBorder(w) (!(w)->borderIsPixel && \
|
||||||
HasBorder(w) && \
|
HasBorder(w) && \
|
||||||
|
@ -235,7 +233,6 @@ RootlessComputeClips (pParent, pScreen, universe, kind, exposed)
|
||||||
break;
|
break;
|
||||||
case rgnPART:
|
case rgnPART:
|
||||||
newVis = VisibilityPartiallyObscured;
|
newVis = VisibilityPartiallyObscured;
|
||||||
#ifdef SHAPE
|
|
||||||
{
|
{
|
||||||
RegionPtr pBounding;
|
RegionPtr pBounding;
|
||||||
|
|
||||||
|
@ -255,7 +252,6 @@ RootlessComputeClips (pParent, pScreen, universe, kind, exposed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
newVis = VisibilityFullyObscured;
|
newVis = VisibilityFullyObscured;
|
||||||
|
|
|
@ -265,7 +265,6 @@ RootlessDestroyWindow(WindowPtr pWin)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
RootlessGetShape(WindowPtr pWin, RegionPtr pShape)
|
RootlessGetShape(WindowPtr pWin, RegionPtr pShape)
|
||||||
|
@ -345,7 +344,6 @@ RootlessSetShape(WindowPtr pWin)
|
||||||
RootlessReshapeFrame(pWin);
|
RootlessReshapeFrame(pWin);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SHAPE
|
|
||||||
|
|
||||||
|
|
||||||
/* Disallow ParentRelative background on top-level windows
|
/* Disallow ParentRelative background on top-level windows
|
||||||
|
@ -463,9 +461,7 @@ RootlessEnsureFrame(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
RootlessWindowRec *winRec;
|
RootlessWindowRec *winRec;
|
||||||
#ifdef SHAPE
|
|
||||||
RegionRec shape;
|
RegionRec shape;
|
||||||
#endif
|
|
||||||
RegionPtr pShape = NULL;
|
RegionPtr pShape = NULL;
|
||||||
|
|
||||||
if (WINREC(pWin) != NULL)
|
if (WINREC(pWin) != NULL)
|
||||||
|
@ -491,11 +487,9 @@ RootlessEnsureFrame(WindowPtr pWin)
|
||||||
|
|
||||||
SETWINREC(pWin, winRec);
|
SETWINREC(pWin, winRec);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
// Set the frame's shape if the window is shaped
|
// Set the frame's shape if the window is shaped
|
||||||
if (RootlessGetShape(pWin, &shape))
|
if (RootlessGetShape(pWin, &shape))
|
||||||
pShape = &shape;
|
pShape = &shape;
|
||||||
#endif
|
|
||||||
|
|
||||||
RL_DEBUG_MSG("creating frame ");
|
RL_DEBUG_MSG("creating frame ");
|
||||||
|
|
||||||
|
@ -513,10 +507,8 @@ RootlessEnsureFrame(WindowPtr pWin)
|
||||||
if (pWin->drawable.depth == 8)
|
if (pWin->drawable.depth == 8)
|
||||||
RootlessFlushWindowColormap(pWin);
|
RootlessFlushWindowColormap(pWin);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
if (pShape != NULL)
|
if (pShape != NULL)
|
||||||
REGION_UNINIT(pScreen, &shape);
|
REGION_UNINIT(pScreen, &shape);
|
||||||
#endif
|
|
||||||
|
|
||||||
return winRec;
|
return winRec;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,9 +39,7 @@
|
||||||
Bool RootlessCreateWindow(WindowPtr pWin);
|
Bool RootlessCreateWindow(WindowPtr pWin);
|
||||||
Bool RootlessDestroyWindow(WindowPtr pWin);
|
Bool RootlessDestroyWindow(WindowPtr pWin);
|
||||||
|
|
||||||
#ifdef SHAPE
|
|
||||||
void RootlessSetShape(WindowPtr pWin);
|
void RootlessSetShape(WindowPtr pWin);
|
||||||
#endif // SHAPE
|
|
||||||
|
|
||||||
Bool RootlessChangeWindowAttributes(WindowPtr pWin, unsigned long vmask);
|
Bool RootlessChangeWindowAttributes(WindowPtr pWin, unsigned long vmask);
|
||||||
Bool RootlessPositionWindow(WindowPtr pWin, int x, int y);
|
Bool RootlessPositionWindow(WindowPtr pWin, int x, int y);
|
||||||
|
|
|
@ -159,9 +159,6 @@ _X_EXPORT Bool noRRExtension = FALSE;
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
_X_EXPORT Bool noRenderExtension = FALSE;
|
_X_EXPORT Bool noRenderExtension = FALSE;
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHAPE
|
|
||||||
_X_EXPORT Bool noShapeExtension = FALSE;
|
|
||||||
#endif
|
|
||||||
#ifdef XCSECURITY
|
#ifdef XCSECURITY
|
||||||
_X_EXPORT Bool noSecurityExtension = FALSE;
|
_X_EXPORT Bool noSecurityExtension = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -169,20 +169,16 @@ ProcXFixesCreateRegionFromWindow (ClientPtr client)
|
||||||
}
|
}
|
||||||
switch (stuff->kind) {
|
switch (stuff->kind) {
|
||||||
case WindowRegionBounding:
|
case WindowRegionBounding:
|
||||||
#ifdef SHAPE
|
|
||||||
pRegion = wBoundingShape(pWin);
|
pRegion = wBoundingShape(pWin);
|
||||||
if (!pRegion)
|
if (!pRegion)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
pRegion = CreateBoundingShape (pWin);
|
pRegion = CreateBoundingShape (pWin);
|
||||||
copy = FALSE;
|
copy = FALSE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WindowRegionClip:
|
case WindowRegionClip:
|
||||||
#ifdef SHAPE
|
|
||||||
pRegion = wClipShape(pWin);
|
pRegion = wClipShape(pWin);
|
||||||
if (!pRegion)
|
if (!pRegion)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
pRegion = CreateClipShape (pWin);
|
pRegion = CreateClipShape (pWin);
|
||||||
copy = FALSE;
|
copy = FALSE;
|
||||||
|
@ -678,7 +674,6 @@ typedef RegionPtr (*CreateDftPtr)(WindowPtr pWin);
|
||||||
int
|
int
|
||||||
ProcXFixesSetWindowShapeRegion (ClientPtr client)
|
ProcXFixesSetWindowShapeRegion (ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef SHAPE
|
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
ScreenPtr pScreen;
|
ScreenPtr pScreen;
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
|
@ -753,9 +748,6 @@ ProcXFixesSetWindowShapeRegion (ClientPtr client)
|
||||||
(*pScreen->SetShape) (pWin);
|
(*pScreen->SetShape) (pWin);
|
||||||
SendShapeNotify (pWin, stuff->destKind);
|
SendShapeNotify (pWin, stuff->destKind);
|
||||||
return (client->noClientException);
|
return (client->noClientException);
|
||||||
#else
|
|
||||||
return BadRequest;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue