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 /mi | |
parent | 990fc643ae90c034187707e7de414d80640ec6da (diff) |
Shape extension is built-in and mandatory.
Diffstat (limited to 'mi')
-rw-r--r-- | mi/miexpose.c | 2 | ||||
-rw-r--r-- | mi/miinitext.c | 11 | ||||
-rw-r--r-- | mi/mioverlay.c | 8 | ||||
-rw-r--r-- | mi/miscrinit.c | 2 | ||||
-rw-r--r-- | mi/mivaltree.c | 4 | ||||
-rw-r--r-- | mi/miwindow.c | 2 |
6 files changed, 2 insertions, 27 deletions
diff --git a/mi/miexpose.c b/mi/miexpose.c index b1bc0135c..7da132403 100644 --- a/mi/miexpose.c +++ b/mi/miexpose.c @@ -265,7 +265,6 @@ miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, extents = pGC->graphicsExposures && (REGION_NUM_RECTS(&rgnExposed) > RECTLIMIT) && (pDstDrawable->type != DRAWABLE_PIXMAP); -#ifdef SHAPE if (pSrcWin) { RegionPtr region; @@ -279,7 +278,6 @@ miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, (RECT_IN_REGION(pscr, region, &srcBox) != rgnIN)) extents = FALSE; } -#endif if (extents) { expBox = *REGION_EXTENTS(pscr, &rgnExposed); diff --git a/mi/miinitext.c b/mi/miinitext.c index cd0a843a4..0263ff1bc 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -116,9 +116,6 @@ extern Bool noRRExtension; #ifdef RENDER extern Bool noRenderExtension; #endif -#ifdef SHAPE -extern Bool noShapeExtension; -#endif #ifdef XCSECURITY extern Bool noSecurityExtension; #endif @@ -349,9 +346,6 @@ static ExtensionToggle ExtensionToggleList[] = #ifdef RENDER { "RENDER", &noRenderExtension }, #endif -#ifdef SHAPE - { "SHAPE", &noShapeExtension }, -#endif #ifdef XCSECURITY { "SECURITY", &noSecurityExtension }, #endif @@ -440,9 +434,7 @@ InitExtensions(int argc, char *argv[]) #ifdef INXQUARTZ if(!noPseudoramiXExtension) PseudoramiXExtensionInit(); #endif -#ifdef SHAPE - if (!noShapeExtension) ShapeExtensionInit(); -#endif + ShapeExtensionInit(); #ifdef MITSHM if (!noMITShmExtension) ShmExtensionInit(); #endif @@ -548,6 +540,7 @@ InitVisualWrap() /* List of built-in (statically linked) extensions */ static ExtensionModule staticExtensions[] = { { GEExtensionInit, "Generic Event Extension", &noGEExtension, NULL, NULL}, + { ShapeExtensionInit, "SHAPE", NULL, NULL, NULL }, #ifdef MITSHM { ShmExtensionInit, SHMNAME, &noMITShmExtension, NULL, NULL }, #endif diff --git a/mi/mioverlay.c b/mi/mioverlay.c index 6ddcc052d..77687fb0c 100644 --- a/mi/mioverlay.c +++ b/mi/mioverlay.c @@ -80,9 +80,7 @@ static void miOverlayResizeWindow(WindowPtr, int, int, unsigned int, unsigned int, WindowPtr); static void miOverlayClearToBackground(WindowPtr, int, int, int, int, Bool); -#ifdef SHAPE static void miOverlaySetShape(WindowPtr); -#endif static void miOverlayChangeBorderWidth(WindowPtr, unsigned int); #define MIOVERLAY_GET_SCREEN_PRIVATE(pScreen) ((miOverlayScreenPtr) \ @@ -148,9 +146,7 @@ miInitOverlay( pScreen->ResizeWindow = miOverlayResizeWindow; pScreen->MarkWindow = miOverlayMarkWindow; pScreen->ClearToBackground = miOverlayClearToBackground; -#ifdef SHAPE pScreen->SetShape = miOverlaySetShape; -#endif pScreen->ChangeBorderWidth = miOverlayChangeBorderWidth; return TRUE; @@ -480,7 +476,6 @@ miOverlayComputeClips( break; case rgnPART: newVis = VisibilityPartiallyObscured; -#ifdef SHAPE { RegionPtr pBounding; @@ -499,7 +494,6 @@ miOverlayComputeClips( } } } -#endif break; default: newVis = VisibilityFullyObscured; @@ -1522,7 +1516,6 @@ miOverlayResizeWindow( } -#ifdef SHAPE static void miOverlaySetShape(WindowPtr pWin) { @@ -1584,7 +1577,6 @@ miOverlaySetShape(WindowPtr pWin) WindowsRestructured (); CheckCursorConfinement(pWin); } -#endif diff --git a/mi/miscrinit.c b/mi/miscrinit.c index 9757113a5..ee607466f 100644 --- a/mi/miscrinit.c +++ b/mi/miscrinit.c @@ -265,9 +265,7 @@ miScreenInit( pScreen->HandleExposures = miHandleValidateExposures; pScreen->ReparentWindow = (ReparentWindowProcPtr) 0; pScreen->ChangeBorderWidth = miChangeBorderWidth; -#ifdef SHAPE pScreen->SetShape = miSetShape; -#endif pScreen->MarkUnrealizedWindow = miMarkUnrealizedWindow; pScreen->SaveDoomedAreas = 0; diff --git a/mi/mivaltree.c b/mi/mivaltree.c index 9449db730..92dcffeea 100644 --- a/mi/mivaltree.c +++ b/mi/mivaltree.c @@ -103,7 +103,6 @@ Equipment Corporation. #include "globals.h" -#ifdef SHAPE /* * Compute the visibility of a shaped window */ @@ -163,7 +162,6 @@ miShapedWindowIn (ScreenPtr pScreen, RegionPtr universe, RegionPtr bounding, return rgnIN; return rgnOUT; } -#endif static GetRedirectBorderClipProcPtr miGetRedirectBorderClipProc; static SetRedirectBorderClipProcPtr miSetRedirectBorderClipProc; @@ -269,7 +267,6 @@ miComputeClips ( break; case rgnPART: newVis = VisibilityPartiallyObscured; -#ifdef SHAPE { RegionPtr pBounding; @@ -289,7 +286,6 @@ miComputeClips ( } } } -#endif break; default: newVis = VisibilityFullyObscured; diff --git a/mi/miwindow.c b/mi/miwindow.c index 9f24c7e4c..1a8b19411 100644 --- a/mi/miwindow.c +++ b/mi/miwindow.c @@ -909,7 +909,6 @@ miGetLayerWindow(WindowPtr pWin) return pWin->firstChild; } -#ifdef SHAPE /****** * * miSetShape @@ -983,7 +982,6 @@ miSetShape(WindowPtr pWin) WindowsRestructured (); CheckCursorConfinement(pWin); } -#endif /* Keeps the same inside(!) origin */ |