treewide: drop COMPOSITE symbol

It's always enabled for very long time now (at least since meson transition),
there doesn't seem to be any need to ever disable it again. So we can reduce
code complexity by removing all the ifdef's.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-04-29 11:43:37 +02:00
parent 88455524fe
commit d708b28adc
37 changed files with 2 additions and 145 deletions

View File

@@ -185,13 +185,8 @@ static void FindColorInRootCmap(ColormapPtr /* pmap */ ,
#define NUMRED(vis) ((vis->redMask >> vis->offsetRed) + 1)
#define NUMGREEN(vis) ((vis->greenMask >> vis->offsetGreen) + 1)
#define NUMBLUE(vis) ((vis->blueMask >> vis->offsetBlue) + 1)
#if COMPOSITE
#define ALPHAMASK(vis) ((vis)->nplanes < 32 ? 0 : \
(CARD32) ~((vis)->redMask|(vis)->greenMask|(vis)->blueMask))
#else
#define ALPHAMASK(vis) 0
#endif
#define RGBMASK(vis) (vis->redMask | vis->greenMask | vis->blueMask | ALPHAMASK(vis))
/* GetNextBitsOrBreak(bits, mask, base) --

View File

@@ -2184,10 +2184,8 @@ DoGetImage(ClientPtr client, int format, Drawable drawable,
PixmapPtr pPix = (*pDraw->pScreen->GetWindowPixmap) (pWin);
pBoundingDraw = &pPix->drawable;
#if defined(COMPOSITE) || defined(ROOTLESS)
relx -= pPix->screen_x;
rely -= pPix->screen_y;
#endif
}
else {
pBoundingDraw = (DrawablePtr) pDraw->pScreen->root;

View File

@@ -129,9 +129,7 @@ Equipment Corporation.
#include "panoramiXsrv.h"
#endif /* XINERAMA */
#include "globals.h"
#ifdef COMPOSITE
#include "compint.h"
#endif
#include "selection.h"
#include "inpututils.h"
#include "privates.h"
@@ -186,9 +184,7 @@ static Bool TileScreenSaver(ScreenPtr pScreen, int kind);
#define SubStrSend(pWin,pParent) (StrSend(pWin) || SubSend(pParent))
#ifdef COMPOSITE
static const char *overlay_win_name = "<composite overlay>";
#endif
static const char *
get_window_name(WindowPtr pWin)
@@ -198,12 +194,10 @@ get_window_name(WindowPtr pWin)
static char buf[WINDOW_NAME_BUF_LEN];
int len;
#ifdef COMPOSITE
CompScreenPtr comp_screen = GetCompScreen(pWin->drawable.pScreen);
if (comp_screen && pWin == comp_screen->pOverlayWin)
return overlay_win_name;
#endif
for (prop = pWin->properties; prop; prop = prop->next) {
if (prop->propertyName == XA_WM_NAME && prop->type == XA_STRING &&
@@ -239,13 +233,11 @@ log_window_info(WindowPtr pWin, int depth)
if (pWin->overrideRedirect)
ErrorF(" (override redirect)");
#ifdef COMPOSITE
if (pWin->redirectDraw)
ErrorF(" (%s compositing: pixmap %x)",
(pWin->redirectDraw == RedirectDrawAutomatic) ?
"automatic" : "manual",
(unsigned) pWin->drawable.pScreen->GetWindowPixmap(pWin)->drawable.id);
#endif
switch (pWin->visibility) {
case VisibilityUnobscured:
@@ -506,9 +498,7 @@ SetWindowToDefaults(WindowPtr pWin)
pWin->forcedBG = FALSE;
pWin->unhittable = FALSE;
#ifdef COMPOSITE
pWin->damagedDescendants = FALSE;
#endif
}
static void
@@ -650,10 +640,8 @@ CreateRootWindow(ScreenPtr pScreen)
pScreen->backingStoreSupport = NotUseful;
if (enableBackingStore)
pScreen->backingStoreSupport = WhenMapped;
#ifdef COMPOSITE
if (noCompositeExtension)
pScreen->backingStoreSupport = NotUseful;
#endif
pScreen->saveUnderSupport = NotUseful;
@@ -1715,7 +1703,6 @@ MoveWindowInStack(WindowPtr pWin, WindowPtr pNextSib)
void
SetWinSize(WindowPtr pWin)
{
#ifdef COMPOSITE
if (pWin->redirectDraw != RedirectDrawNone) {
BoxRec box;
@@ -1730,7 +1717,6 @@ SetWinSize(WindowPtr pWin)
RegionReset(&pWin->winSize, &box);
}
else
#endif
ClippedRegionFromBox(pWin->parent, &pWin->winSize,
pWin->drawable.x, pWin->drawable.y,
(int) pWin->drawable.width,
@@ -1753,7 +1739,6 @@ SetBorderSize(WindowPtr pWin)
if (HasBorder(pWin)) {
bw = wBorderWidth(pWin);
#ifdef COMPOSITE
if (pWin->redirectDraw != RedirectDrawNone) {
BoxRec box;
@@ -1768,7 +1753,6 @@ SetBorderSize(WindowPtr pWin)
RegionReset(&pWin->borderSize, &box);
}
else
#endif
ClippedRegionFromBox(pWin->parent, &pWin->borderSize,
pWin->drawable.x - bw, pWin->drawable.y - bw,
(int) (pWin->drawable.width + (bw << 1)),