diff options
author | Adam Jackson <ajax@redhat.com> | 2008-07-24 09:00:22 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-07-24 15:46:08 -0400 |
commit | d6228cb22aa89b90834d80d98b91862c1fc01b54 (patch) | |
tree | 4e284d35f26e728cfe5c4502f25ddf1c5591aa58 /miext | |
parent | 990fc643ae90c034187707e7de414d80640ec6da (diff) |
Shape extension is built-in and mandatory.
Diffstat (limited to 'miext')
-rw-r--r-- | miext/rootless/rootlessCommon.h | 4 | ||||
-rw-r--r-- | miext/rootless/rootlessScreen.c | 2 | ||||
-rw-r--r-- | miext/rootless/rootlessValTree.c | 4 | ||||
-rw-r--r-- | miext/rootless/rootlessWindow.c | 8 | ||||
-rw-r--r-- | miext/rootless/rootlessWindow.h | 2 |
5 files changed, 0 insertions, 20 deletions
diff --git a/miext/rootless/rootlessCommon.h b/miext/rootless/rootlessCommon.h index 9e4a14a04..56f81f5d5 100644 --- a/miext/rootless/rootlessCommon.h +++ b/miext/rootless/rootlessCommon.h @@ -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; diff --git a/miext/rootless/rootlessScreen.c b/miext/rootless/rootlessScreen.c index 5031858dd..8eaacca0b 100644 --- a/miext/rootless/rootlessScreen.c +++ b/miext/rootless/rootlessScreen.c @@ -666,9 +666,7 @@ RootlessWrap(ScreenPtr pScreen) WRAP(UninstallColormap); WRAP(StoreColors); -#ifdef SHAPE WRAP(SetShape); -#endif #ifdef RENDER { diff --git a/miext/rootless/rootlessValTree.c b/miext/rootless/rootlessValTree.c index 4f16530cc..d52a2af81 100644 --- a/miext/rootless/rootlessValTree.c +++ b/miext/rootless/rootlessValTree.c @@ -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; diff --git a/miext/rootless/rootlessWindow.c b/miext/rootless/rootlessWindow.c index 0edafe7ea..d863e3995 100644 --- a/miext/rootless/rootlessWindow.c +++ b/miext/rootless/rootlessWindow.c @@ -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; } diff --git a/miext/rootless/rootlessWindow.h b/miext/rootless/rootlessWindow.h index 45bc4c202..2d2555ea5 100644 --- a/miext/rootless/rootlessWindow.h +++ b/miext/rootless/rootlessWindow.h @@ -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); |