mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-25 21:02:21 +00:00
Shape extension is built-in and mandatory.
This commit is contained in:
parent
990fc643ae
commit
d6228cb22a
40 changed files with 2 additions and 201 deletions
|
|
@ -39,9 +39,7 @@
|
|||
#include "rootless.h"
|
||||
#include "fb.h"
|
||||
|
||||
#ifdef SHAPE
|
||||
#include "scrnintstr.h"
|
||||
#endif /* SHAPE */
|
||||
|
||||
#ifdef RENDER
|
||||
#include "picturestr.h"
|
||||
|
|
@ -99,9 +97,7 @@ typedef struct _RootlessScreenRec {
|
|||
MarkOverlappedWindowsProcPtr MarkOverlappedWindows;
|
||||
ValidateTreeProcPtr ValidateTree;
|
||||
|
||||
#ifdef SHAPE
|
||||
SetShapeProcPtr SetShape;
|
||||
#endif
|
||||
|
||||
#ifdef RENDER
|
||||
CompositeProcPtr Composite;
|
||||
|
|
|
|||
|
|
@ -666,9 +666,7 @@ RootlessWrap(ScreenPtr pScreen)
|
|||
WRAP(UninstallColormap);
|
||||
WRAP(StoreColors);
|
||||
|
||||
#ifdef SHAPE
|
||||
WRAP(SetShape);
|
||||
#endif
|
||||
|
||||
#ifdef RENDER
|
||||
{
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@ Equipment Corporation.
|
|||
|
||||
#include "globals.h"
|
||||
|
||||
#ifdef SHAPE
|
||||
/*
|
||||
* Compute the visibility of a shaped window
|
||||
*/
|
||||
|
|
@ -167,7 +166,6 @@ RootlessShapedWindowIn (pScreen, universe, bounding, rect, x, y)
|
|||
return rgnIN;
|
||||
return rgnOUT;
|
||||
}
|
||||
#endif
|
||||
|
||||
#define HasParentRelativeBorder(w) (!(w)->borderIsPixel && \
|
||||
HasBorder(w) && \
|
||||
|
|
@ -235,7 +233,6 @@ RootlessComputeClips (pParent, pScreen, universe, kind, exposed)
|
|||
break;
|
||||
case rgnPART:
|
||||
newVis = VisibilityPartiallyObscured;
|
||||
#ifdef SHAPE
|
||||
{
|
||||
RegionPtr pBounding;
|
||||
|
||||
|
|
@ -255,7 +252,6 @@ RootlessComputeClips (pParent, pScreen, universe, kind, exposed)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
newVis = VisibilityFullyObscured;
|
||||
|
|
|
|||
|
|
@ -265,7 +265,6 @@ RootlessDestroyWindow(WindowPtr pWin)
|
|||
}
|
||||
|
||||
|
||||
#ifdef SHAPE
|
||||
|
||||
static Bool
|
||||
RootlessGetShape(WindowPtr pWin, RegionPtr pShape)
|
||||
|
|
@ -345,7 +344,6 @@ RootlessSetShape(WindowPtr pWin)
|
|||
RootlessReshapeFrame(pWin);
|
||||
}
|
||||
|
||||
#endif // SHAPE
|
||||
|
||||
|
||||
/* Disallow ParentRelative background on top-level windows
|
||||
|
|
@ -463,9 +461,7 @@ RootlessEnsureFrame(WindowPtr pWin)
|
|||
{
|
||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||
RootlessWindowRec *winRec;
|
||||
#ifdef SHAPE
|
||||
RegionRec shape;
|
||||
#endif
|
||||
RegionPtr pShape = NULL;
|
||||
|
||||
if (WINREC(pWin) != NULL)
|
||||
|
|
@ -491,11 +487,9 @@ RootlessEnsureFrame(WindowPtr pWin)
|
|||
|
||||
SETWINREC(pWin, winRec);
|
||||
|
||||
#ifdef SHAPE
|
||||
// Set the frame's shape if the window is shaped
|
||||
if (RootlessGetShape(pWin, &shape))
|
||||
pShape = &shape;
|
||||
#endif
|
||||
|
||||
RL_DEBUG_MSG("creating frame ");
|
||||
|
||||
|
|
@ -513,10 +507,8 @@ RootlessEnsureFrame(WindowPtr pWin)
|
|||
if (pWin->drawable.depth == 8)
|
||||
RootlessFlushWindowColormap(pWin);
|
||||
|
||||
#ifdef SHAPE
|
||||
if (pShape != NULL)
|
||||
REGION_UNINIT(pScreen, &shape);
|
||||
#endif
|
||||
|
||||
return winRec;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,9 +39,7 @@
|
|||
Bool RootlessCreateWindow(WindowPtr pWin);
|
||||
Bool RootlessDestroyWindow(WindowPtr pWin);
|
||||
|
||||
#ifdef SHAPE
|
||||
void RootlessSetShape(WindowPtr pWin);
|
||||
#endif // SHAPE
|
||||
|
||||
Bool RootlessChangeWindowAttributes(WindowPtr pWin, unsigned long vmask);
|
||||
Bool RootlessPositionWindow(WindowPtr pWin, int x, int y);
|
||||
|
|
|
|||
Loading…
Reference in a new issue