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 /hw | |
parent | 990fc643ae90c034187707e7de414d80640ec6da (diff) |
Shape extension is built-in and mandatory.
Diffstat (limited to 'hw')
-rw-r--r-- | hw/dmx/dmx.h | 2 | ||||
-rw-r--r-- | hw/dmx/dmxclient.h | 2 | ||||
-rw-r--r-- | hw/dmx/dmxscrinit.c | 4 | ||||
-rw-r--r-- | hw/dmx/dmxwindow.c | 8 | ||||
-rw-r--r-- | hw/dmx/dmxwindow.h | 4 | ||||
-rw-r--r-- | hw/xfree86/dixmods/extmod/modinit.c | 9 | ||||
-rw-r--r-- | hw/xfree86/dixmods/extmod/modinit.h | 2 | ||||
-rw-r--r-- | hw/xfree86/loader/dixsym.c | 3 | ||||
-rw-r--r-- | hw/xnest/Screen.c | 2 | ||||
-rw-r--r-- | hw/xnest/Window.c | 10 | ||||
-rw-r--r-- | hw/xnest/XNWindow.h | 4 | ||||
-rw-r--r-- | hw/xwin/win.h | 6 | ||||
-rw-r--r-- | hw/xwin/winmultiwindowshape.c | 2 | ||||
-rw-r--r-- | hw/xwin/winmultiwindowwindow.c | 2 | ||||
-rw-r--r-- | hw/xwin/winscrinit.c | 8 | ||||
-rw-r--r-- | hw/xwin/winwindow.c | 8 |
16 files changed, 0 insertions, 76 deletions
diff --git a/hw/dmx/dmx.h b/hw/dmx/dmx.h index 4fef91537..00200a851 100644 --- a/hw/dmx/dmx.h +++ b/hw/dmx/dmx.h @@ -231,9 +231,7 @@ typedef struct _DMXScreenInfo { InstallColormapProcPtr InstallColormap; StoreColorsProcPtr StoreColors; -#ifdef SHAPE SetShapeProcPtr SetShape; -#endif #ifdef RENDER CreatePictureProcPtr CreatePicture; diff --git a/hw/dmx/dmxclient.h b/hw/dmx/dmxclient.h index 91ba0493c..f0c3608da 100644 --- a/hw/dmx/dmxclient.h +++ b/hw/dmx/dmxclient.h @@ -84,9 +84,7 @@ typedef XID KeySym64; #include <X11/cursorfont.h> #include <X11/Xmu/SysUtil.h> /* For XmuSnprintf */ -#ifdef SHAPE #include <X11/extensions/shape.h> -#endif #ifdef RENDER #include <X11/extensions/Xrender.h> diff --git a/hw/dmx/dmxscrinit.c b/hw/dmx/dmxscrinit.c index 1d12ec32d..0e49e9677 100644 --- a/hw/dmx/dmxscrinit.c +++ b/hw/dmx/dmxscrinit.c @@ -340,10 +340,8 @@ Bool dmxScreenInit(int idx, ScreenPtr pScreen, int argc, char *argv[]) DMX_WRAP(InstallColormap, dmxInstallColormap, dmxScreen, pScreen); DMX_WRAP(StoreColors, dmxStoreColors, dmxScreen, pScreen); -#ifdef SHAPE /* Wrap Shape functions */ DMX_WRAP(SetShape, dmxSetShape, dmxScreen, pScreen); -#endif } if (!dmxCreateDefColormap(pScreen)) @@ -434,10 +432,8 @@ Bool dmxCloseScreen(int idx, ScreenPtr pScreen) xfree(dmxScreen->shadow); } else { -#ifdef SHAPE /* Unwrap Shape functions */ DMX_UNWRAP(SetShape, dmxScreen, pScreen); -#endif /* Unwrap the pScreen functions */ DMX_UNWRAP(CreateGC, dmxScreen, pScreen); diff --git a/hw/dmx/dmxwindow.c b/hw/dmx/dmxwindow.c index 7494e6df2..24acc08e3 100644 --- a/hw/dmx/dmxwindow.c +++ b/hw/dmx/dmxwindow.c @@ -57,9 +57,7 @@ static void dmxDoChangeWindowAttributes(WindowPtr pWindow, unsigned long *mask, XSetWindowAttributes *attribs); -#ifdef SHAPE static void dmxDoSetShape(WindowPtr pWindow); -#endif /** Initialize the private area for the window functions. */ Bool dmxInitWindow(ScreenPtr pScreen) @@ -289,9 +287,7 @@ void dmxCreateAndRealizeWindow(WindowPtr pWindow, Bool doSync) pWinPriv->window = dmxCreateNonRootWindow(pWindow); if (pWinPriv->restacked) dmxDoRestackWindow(pWindow); -#ifdef SHAPE if (pWinPriv->isShaped) dmxDoSetShape(pWindow); -#endif #ifdef RENDER if (pWinPriv->hasPict) dmxCreatePictureList(pWindow); #endif @@ -323,9 +319,7 @@ Bool dmxCreateWindow(WindowPtr pWindow) pWinPriv->mapped = FALSE; pWinPriv->restacked = FALSE; pWinPriv->attribMask = 0; -#ifdef SHAPE pWinPriv->isShaped = FALSE; -#endif #ifdef RENDER pWinPriv->hasPict = FALSE; #endif @@ -942,7 +936,6 @@ void dmxChangeBorderWidth(WindowPtr pWindow, unsigned int width) DMX_WRAP(ChangeBorderWidth, dmxChangeBorderWidth, dmxScreen, pScreen); } -#ifdef SHAPE static void dmxDoSetShape(WindowPtr pWindow) { ScreenPtr pScreen = pWindow->drawable.pScreen; @@ -1029,4 +1022,3 @@ void dmxSetShape(WindowPtr pWindow) DMX_WRAP(SetShape, dmxSetShape, dmxScreen, pScreen); } -#endif diff --git a/hw/dmx/dmxwindow.h b/hw/dmx/dmxwindow.h index 72c76aa3b..353d0a3ba 100644 --- a/hw/dmx/dmxwindow.h +++ b/hw/dmx/dmxwindow.h @@ -48,9 +48,7 @@ typedef struct _dmxWinPriv { unsigned long attribMask; Colormap cmap; Visual *visual; -#ifdef SHAPE Bool isShaped; -#endif #ifdef RENDER Bool hasPict; #endif @@ -97,10 +95,8 @@ extern void dmxResizeRootWindow(WindowPtr pRoot, extern Bool dmxBEDestroyWindow(WindowPtr pWindow); -#ifdef SHAPE /* Support for shape extension */ extern void dmxSetShape(WindowPtr pWindow); -#endif /** Private index. \see dmxwindow.c \see dmxscrinit.c */ extern DevPrivateKey dmxWinPrivateKey; diff --git a/hw/xfree86/dixmods/extmod/modinit.c b/hw/xfree86/dixmods/extmod/modinit.c index a18118a53..bfbd31c10 100644 --- a/hw/xfree86/dixmods/extmod/modinit.c +++ b/hw/xfree86/dixmods/extmod/modinit.c @@ -47,15 +47,6 @@ static ExtensionModule extensionModules[] = { NULL }, #endif -#ifdef SHAPE - { - ShapeExtensionInit, - SHAPENAME, - &noShapeExtension, - NULL, - NULL - }, -#endif #ifdef MULTIBUFFER { MultibufferExtensionInit, diff --git a/hw/xfree86/dixmods/extmod/modinit.h b/hw/xfree86/dixmods/extmod/modinit.h index fe95c4922..a376a596e 100644 --- a/hw/xfree86/dixmods/extmod/modinit.h +++ b/hw/xfree86/dixmods/extmod/modinit.h @@ -7,10 +7,8 @@ #define INITARGS void #endif -#ifdef SHAPE #define _SHAPE_SERVER_ /* don't want Xlib structures */ #include <X11/extensions/shapestr.h> -#endif #ifdef MULTIBUFFER extern void MultibufferExtensionInit(INITARGS); diff --git a/hw/xfree86/loader/dixsym.c b/hw/xfree86/loader/dixsym.c index eb7988f64..748e8952f 100644 --- a/hw/xfree86/loader/dixsym.c +++ b/hw/xfree86/loader/dixsym.c @@ -374,9 +374,6 @@ _X_HIDDEN void *dixLookupTab[] = { #ifdef RENDER SYMVAR(noRenderExtension) #endif -#ifdef SHAPE - SYMVAR(noShapeExtension) -#endif #ifdef XCSECURITY SYMVAR(noSecurityExtension) #endif diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 1c129e703..02294557d 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -331,10 +331,8 @@ xnestOpenScreen(int index, ScreenPtr pScreen, int argc, char *argv[]) if (!miScreenDevPrivateInit(pScreen, xnestWidth, NULL)) return FALSE; -#ifdef SHAPE /* overwrite miSetShape with our own */ pScreen->SetShape = xnestSetShape; -#endif /* SHAPE */ /* devPrivates */ diff --git a/hw/xnest/Window.c b/hw/xnest/Window.c index bc9d8bed2..23383e180 100644 --- a/hw/xnest/Window.c +++ b/hw/xnest/Window.c @@ -131,12 +131,10 @@ xnestCreateWindow(WindowPtr pWin) xnestWindowPriv(pWin)->sibling_above = None; if (pWin->nextSib) xnestWindowPriv(pWin->nextSib)->sibling_above = xnestWindow(pWin); -#ifdef SHAPE xnestWindowPriv(pWin)->bounding_shape = REGION_CREATE(pWin->drawable.pScreen, NULL, 1); xnestWindowPriv(pWin)->clip_shape = REGION_CREATE(pWin->drawable.pScreen, NULL, 1); -#endif /* SHAPE */ if (!pWin->parent) /* only the root window will have the right colormap */ xnestSetInstalledColormapWindows(pWin->drawable.pScreen); @@ -150,12 +148,10 @@ xnestDestroyWindow(WindowPtr pWin) if (pWin->nextSib) xnestWindowPriv(pWin->nextSib)->sibling_above = xnestWindowPriv(pWin)->sibling_above; -#ifdef SHAPE REGION_DESTROY(pWin->drawable.pScreen, xnestWindowPriv(pWin)->bounding_shape); REGION_DESTROY(pWin->drawable.pScreen, xnestWindowPriv(pWin)->clip_shape); -#endif XDestroyWindow(xnestDisplay, xnestWindow(pWin)); xnestWindowPriv(pWin)->window = None; @@ -362,9 +358,7 @@ Bool xnestRealizeWindow(WindowPtr pWin) { xnestConfigureWindow(pWin, CWStackingOrder); -#ifdef SHAPE xnestShapeWindow(pWin); -#endif /* SHAPE */ XMapWindow(xnestDisplay, xnestWindow(pWin)); return True; @@ -387,9 +381,7 @@ void xnestClipNotify(WindowPtr pWin, int dx, int dy) { xnestConfigureWindow(pWin, CWStackingOrder); -#ifdef SHAPE xnestShapeWindow(pWin); -#endif /* SHAPE */ } static Bool @@ -426,7 +418,6 @@ xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr other_exposed) miWindowExposures(pWin, pRgn, other_exposed); } -#ifdef SHAPE void xnestSetShape(WindowPtr pWin) { @@ -529,4 +520,3 @@ xnestShapeWindow(WindowPtr pWin) } } } -#endif /* SHAPE */ diff --git a/hw/xnest/XNWindow.h b/hw/xnest/XNWindow.h index 4cb66c8ce..b59d86a97 100644 --- a/hw/xnest/XNWindow.h +++ b/hw/xnest/XNWindow.h @@ -24,10 +24,8 @@ typedef struct { unsigned int height; unsigned int border_width; Window sibling_above; -#ifdef SHAPE RegionPtr bounding_shape; RegionPtr clip_shape; -#endif /* SHAPE */ } xnestPrivWin; typedef struct { @@ -68,9 +66,7 @@ void xnestCopyWindow(WindowPtr pWin, xPoint oldOrigin, RegionPtr oldRegion); void xnestClipNotify(WindowPtr pWin, int dx, int dy); void xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr other_exposed); -#ifdef SHAPE void xnestSetShape(WindowPtr pWin); void xnestShapeWindow(WindowPtr pWin); -#endif /* SHAPE */ #endif /* XNESTWINDOW_H */ diff --git a/hw/xwin/win.h b/hw/xwin/win.h index 3ab324931..ea54b997c 100644 --- a/hw/xwin/win.h +++ b/hw/xwin/win.h @@ -586,9 +586,7 @@ typedef struct _winPrivScreenRec ReparentWindowProcPtr ReparentWindow; ResizeWindowProcPtr ResizeWindow; MoveWindowProcPtr MoveWindow; -#ifdef SHAPE SetShapeProcPtr SetShape; -#endif winCursorRec cursor; } winPrivScreenRec; @@ -1196,10 +1194,8 @@ winUnmapWindowRootless (WindowPtr pWindow); Bool winMapWindowRootless (WindowPtr pWindow); -#ifdef SHAPE void winSetShapeRootless (WindowPtr pWindow); -#endif /* @@ -1215,7 +1211,6 @@ winXIconToHICON (WindowPtr pWin, int iconSize); * winmultiwindowshape.c */ -# ifdef SHAPE void winReshapeMultiWindow (WindowPtr pWin); @@ -1224,7 +1219,6 @@ winSetShapeMultiWindow (WindowPtr pWindow); void winUpdateRgnMultiWindow (WindowPtr pWindow); -# endif #endif diff --git a/hw/xwin/winmultiwindowshape.c b/hw/xwin/winmultiwindowshape.c index 33deae337..62cddd0a1 100644 --- a/hw/xwin/winmultiwindowshape.c +++ b/hw/xwin/winmultiwindowshape.c @@ -32,7 +32,6 @@ #ifdef HAVE_XWIN_CONFIG_H #include <xwin-config.h> #endif -#ifdef SHAPE #include "win.h" @@ -208,4 +207,3 @@ winReshapeMultiWindow (WindowPtr pWin) return; } -#endif diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c index 037c881b4..75bef9786 100644 --- a/hw/xwin/winmultiwindowwindow.c +++ b/hw/xwin/winmultiwindowwindow.c @@ -352,11 +352,9 @@ winMapWindowMultiWindow (WindowPtr pWin) /* Refresh/redisplay the Windows window associated with this X window */ winUpdateWindowsWindow (pWin); -#ifdef SHAPE /* Update the Windows window's shape */ winReshapeMultiWindow (pWin); winUpdateRgnMultiWindow (pWin); -#endif return fResult; } diff --git a/hw/xwin/winscrinit.c b/hw/xwin/winscrinit.c index 9dc4c3da5..512109500 100644 --- a/hw/xwin/winscrinit.c +++ b/hw/xwin/winscrinit.c @@ -478,9 +478,7 @@ winFinishScreenInitFB (int index, WRAP(UnrealizeWindow); WRAP(PositionWindow); WRAP(ChangeWindowAttributes); -#ifdef SHAPE WRAP(SetShape); -#endif /* Assign rootless window procedures to be top level procedures */ pScreen->CreateWindow = winCreateWindowRootless; @@ -489,9 +487,7 @@ winFinishScreenInitFB (int index, /*pScreen->ChangeWindowAttributes = winChangeWindowAttributesRootless;*/ pScreen->RealizeWindow = winMapWindowRootless; pScreen->UnrealizeWindow = winUnmapWindowRootless; -#ifdef SHAPE pScreen->SetShape = winSetShapeRootless; -#endif /* Undefine the WRAP macro, as it is not needed elsewhere */ #undef WRAP @@ -523,9 +519,7 @@ winFinishScreenInitFB (int index, WRAP(ResizeWindow); WRAP(MoveWindow); WRAP(CopyWindow); -#ifdef SHAPE WRAP(SetShape); -#endif /* Assign multi-window window procedures to be top level procedures */ pScreen->CreateWindow = winCreateWindowMultiWindow; @@ -539,9 +533,7 @@ winFinishScreenInitFB (int index, pScreen->ResizeWindow = winResizeWindowMultiWindow; pScreen->MoveWindow = winMoveWindowMultiWindow; pScreen->CopyWindow = winCopyWindowMultiWindow; -#ifdef SHAPE pScreen->SetShape = winSetShapeMultiWindow; -#endif /* Undefine the WRAP macro, as it is not needed elsewhere */ #undef WRAP diff --git a/hw/xwin/winwindow.c b/hw/xwin/winwindow.c index 1600996df..285a344f7 100644 --- a/hw/xwin/winwindow.c +++ b/hw/xwin/winwindow.c @@ -46,11 +46,9 @@ static void winUpdateRgnRootless (WindowPtr pWindow); -#ifdef SHAPE static void winReshapeRootless (WindowPtr pWin); -#endif #ifdef XWIN_NATIVEGDI @@ -447,9 +445,7 @@ winMapWindowRootless (WindowPtr pWin) fResult = (*pScreen->RealizeWindow)(pWin); WIN_WRAP(RealizeWindow, winMapWindowRootless); -#ifdef SHAPE winReshapeRootless (pWin); -#endif winUpdateRgnRootless (pWin); @@ -457,7 +453,6 @@ winMapWindowRootless (WindowPtr pWin) } -#ifdef SHAPE void winSetShapeRootless (WindowPtr pWin) { @@ -478,7 +473,6 @@ winSetShapeRootless (WindowPtr pWin) return; } -#endif /* @@ -569,7 +563,6 @@ winUpdateRgnRootless (WindowPtr pWin) } -#ifdef SHAPE static void winReshapeRootless (WindowPtr pWin) @@ -646,4 +639,3 @@ winReshapeRootless (WindowPtr pWin) return; } -#endif |