diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-11-11 09:03:17 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-11-11 09:03:17 +0000 |
commit | 79250ad1e2b76f2ba5aa8d6dc0134c6c07ceac3a (patch) | |
tree | 6d31264b9d5ca7fc0d7c690ef6a3340917c949e4 /xserver/composite | |
parent | 0c0a487400d29e7404b66758c41ad54ee01d46ee (diff) |
Update to xserver 21.1.0
Diffstat (limited to 'xserver/composite')
-rw-r--r-- | xserver/composite/Makefile.in | 38 | ||||
-rw-r--r-- | xserver/composite/compalloc.c | 5 | ||||
-rw-r--r-- | xserver/composite/compinit.c | 52 | ||||
-rw-r--r-- | xserver/composite/compint.h | 2 | ||||
-rw-r--r-- | xserver/composite/compwindow.c | 17 |
5 files changed, 22 insertions, 92 deletions
diff --git a/xserver/composite/Makefile.in b/xserver/composite/Makefile.in index 43abe323c..288c394e4 100644 --- a/xserver/composite/Makefile.in +++ b/xserver/composite/Makefile.in @@ -69,7 +69,6 @@ CONFIG_HEADER = $(top_builddir)/include/do-not-use-config.h \ $(top_builddir)/include/xorg-config.h \ $(top_builddir)/include/xkb-config.h \ $(top_builddir)/include/xwin-config.h \ - $(top_builddir)/include/xwayland-config.h \ $(top_builddir)/include/version-config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = @@ -173,8 +172,6 @@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ BASE_FONT_PATH = @BASE_FONT_PATH@ -BUILD_DATE = @BUILD_DATE@ -BUILD_TIME = @BUILD_TIME@ BUNDLE_ID_PREFIX = @BUNDLE_ID_PREFIX@ BUNDLE_VERSION = @BUNDLE_VERSION@ BUNDLE_VERSION_STRING = @BUNDLE_VERSION_STRING@ @@ -206,14 +203,6 @@ DIX_CFLAGS = @DIX_CFLAGS@ DIX_LIB = @DIX_LIB@ DLLTOOL = @DLLTOOL@ DLOPEN_LIBS = @DLOPEN_LIBS@ -DMXEXAMPLES_DEP_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ -DMXEXAMPLES_DEP_LIBS = @DMXEXAMPLES_DEP_LIBS@ -DMXMODULES_CFLAGS = @DMXMODULES_CFLAGS@ -DMXMODULES_LIBS = @DMXMODULES_LIBS@ -DMXXIEXAMPLES_DEP_CFLAGS = @DMXXIEXAMPLES_DEP_CFLAGS@ -DMXXIEXAMPLES_DEP_LIBS = @DMXXIEXAMPLES_DEP_LIBS@ -DMXXMUEXAMPLES_DEP_CFLAGS = @DMXXMUEXAMPLES_DEP_CFLAGS@ -DMXXMUEXAMPLES_DEP_LIBS = @DMXXMUEXAMPLES_DEP_LIBS@ DOT = @DOT@ DOXYGEN = @DOXYGEN@ DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@ @@ -287,6 +276,8 @@ LIBSHA1_LIBS = @LIBSHA1_LIBS@ LIBTOOL = @LIBTOOL@ LIBUNWIND_CFLAGS = @LIBUNWIND_CFLAGS@ LIBUNWIND_LIBS = @LIBUNWIND_LIBS@ +LIBXCVT_CFLAGS = @LIBXCVT_CFLAGS@ +LIBXCVT_LIBS = @LIBXCVT_LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LIPO = @LIPO@ @@ -339,7 +330,6 @@ RANLIB = @RANLIB@ RAWCPP = @RAWCPP@ RAWCPPFLAGS = @RAWCPPFLAGS@ RELEASE_DATE = @RELEASE_DATE@ -SCANNER_ARG = @SCANNER_ARG@ SDK_REQUIRED_MODULES = @SDK_REQUIRED_MODULES@ SED = @SED@ SELINUX_CFLAGS = @SELINUX_CFLAGS@ @@ -363,29 +353,13 @@ UDEV_LIBS = @UDEV_LIBS@ UTILS_SYS_LIBS = @UTILS_SYS_LIBS@ VENDOR_NAME_SHORT = @VENDOR_NAME_SHORT@ VERSION = @VERSION@ -WAYLAND_EGLSTREAM_CFLAGS = @WAYLAND_EGLSTREAM_CFLAGS@ -WAYLAND_EGLSTREAM_DATADIR = @WAYLAND_EGLSTREAM_DATADIR@ -WAYLAND_EGLSTREAM_LIBS = @WAYLAND_EGLSTREAM_LIBS@ -WAYLAND_PROTOCOLS_DATADIR = @WAYLAND_PROTOCOLS_DATADIR@ -WAYLAND_SCANNER = @WAYLAND_SCANNER@ -WAYLAND_SCANNER_CFLAGS = @WAYLAND_SCANNER_CFLAGS@ -WAYLAND_SCANNER_LIBS = @WAYLAND_SCANNER_LIBS@ WINDOWSDRI_CFLAGS = @WINDOWSDRI_CFLAGS@ WINDOWSDRI_LIBS = @WINDOWSDRI_LIBS@ -WINDOWSWM_CFLAGS = @WINDOWSWM_CFLAGS@ -WINDOWSWM_LIBS = @WINDOWSWM_LIBS@ WINDRES = @WINDRES@ -X11EXAMPLES_DEP_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@ -X11EXAMPLES_DEP_LIBS = @X11EXAMPLES_DEP_LIBS@ XCONFIGDIR = @XCONFIGDIR@ XCONFIGFILE = @XCONFIGFILE@ XDMCP_CFLAGS = @XDMCP_CFLAGS@ XDMCP_LIBS = @XDMCP_LIBS@ -XDMXCONFIG_DEP_CFLAGS = @XDMXCONFIG_DEP_CFLAGS@ -XDMXCONFIG_DEP_LIBS = @XDMXCONFIG_DEP_LIBS@ -XDMX_CFLAGS = @XDMX_CFLAGS@ -XDMX_LIBS = @XDMX_LIBS@ -XDMX_SYS_LIBS = @XDMX_SYS_LIBS@ XEPHYR_CFLAGS = @XEPHYR_CFLAGS@ XEPHYR_INCS = @XEPHYR_INCS@ XEPHYR_LIBS = @XEPHYR_LIBS@ @@ -423,8 +397,6 @@ XPBPROXY_LIBS = @XPBPROXY_LIBS@ XQUARTZ_LIBS = @XQUARTZ_LIBS@ XQUARTZ_SPARKLE = @XQUARTZ_SPARKLE@ XQUARTZ_SPARKLE_FEED_URL = @XQUARTZ_SPARKLE_FEED_URL@ -XRESEXAMPLES_DEP_CFLAGS = @XRESEXAMPLES_DEP_CFLAGS@ -XRESEXAMPLES_DEP_LIBS = @XRESEXAMPLES_DEP_LIBS@ XSERVERCFLAGS_CFLAGS = @XSERVERCFLAGS_CFLAGS@ XSERVERCFLAGS_LIBS = @XSERVERCFLAGS_LIBS@ XSERVERLIBS_CFLAGS = @XSERVERLIBS_CFLAGS@ @@ -435,14 +407,8 @@ XSHMFENCE_CFLAGS = @XSHMFENCE_CFLAGS@ XSHMFENCE_LIBS = @XSHMFENCE_LIBS@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ -XTSTEXAMPLES_DEP_CFLAGS = @XTSTEXAMPLES_DEP_CFLAGS@ -XTSTEXAMPLES_DEP_LIBS = @XTSTEXAMPLES_DEP_LIBS@ XVFB_LIBS = @XVFB_LIBS@ XVFB_SYS_LIBS = @XVFB_SYS_LIBS@ -XWAYLANDMODULES_CFLAGS = @XWAYLANDMODULES_CFLAGS@ -XWAYLANDMODULES_LIBS = @XWAYLANDMODULES_LIBS@ -XWAYLAND_LIBS = @XWAYLAND_LIBS@ -XWAYLAND_SYS_LIBS = @XWAYLAND_SYS_LIBS@ XWINMODULES_CFLAGS = @XWINMODULES_CFLAGS@ XWINMODULES_LIBS = @XWINMODULES_LIBS@ XWIN_LIBS = @XWIN_LIBS@ diff --git a/xserver/composite/compalloc.c b/xserver/composite/compalloc.c index 3e2f14fb0..eaabf0d91 100644 --- a/xserver/composite/compalloc.c +++ b/xserver/composite/compalloc.c @@ -97,6 +97,8 @@ compDestroyDamage(DamagePtr pDamage, void *closure) CompWindowPtr cw = GetCompWindow(pWin); cw->damage = 0; + cw->damaged = 0; + cw->damageRegistered = 0; } static Bool @@ -669,7 +671,8 @@ compReallocPixmap(WindowPtr pWin, int draw_x, int draw_y, int pix_x, pix_y; int pix_w, pix_h; - assert(cw && pWin->redirectDraw != RedirectDrawNone); + assert(cw); + assert(pWin->redirectDraw != RedirectDrawNone); cw->oldx = pOld->screen_x; cw->oldy = pOld->screen_y; pix_x = draw_x - bw; diff --git a/xserver/composite/compinit.c b/xserver/composite/compinit.c index 6ea33ea4e..a62c8d3c4 100644 --- a/xserver/composite/compinit.c +++ b/xserver/composite/compinit.c @@ -76,9 +76,6 @@ compCloseScreen(ScreenPtr pScreen) pScreen->CreateWindow = cs->CreateWindow; pScreen->CopyWindow = cs->CopyWindow; pScreen->PositionWindow = cs->PositionWindow; - - pScreen->GetImage = cs->GetImage; - pScreen->GetSpans = cs->GetSpans; pScreen->SourceValidate = cs->SourceValidate; free(cs); @@ -108,14 +105,12 @@ compInstallColormap(ColormapPtr pColormap) static void compCheckBackingStore(WindowPtr pWin) { - if (pWin->backingStore != NotUseful && !pWin->backStorage) { + if (pWin->backingStore != NotUseful) { compRedirectWindow(serverClient, pWin, CompositeRedirectAutomatic); - pWin->backStorage = TRUE; } - else if (pWin->backingStore == NotUseful && pWin->backStorage) { + else { compUnredirectWindow(serverClient, pWin, CompositeRedirectAutomatic); - pWin->backStorage = FALSE; } } @@ -140,38 +135,6 @@ compChangeWindowAttributes(WindowPtr pWin, unsigned long mask) } static void -compGetImage(DrawablePtr pDrawable, - int sx, int sy, - int w, int h, - unsigned int format, unsigned long planemask, char *pdstLine) -{ - ScreenPtr pScreen = pDrawable->pScreen; - CompScreenPtr cs = GetCompScreen(pScreen); - - pScreen->GetImage = cs->GetImage; - if (pDrawable->type == DRAWABLE_WINDOW) - compPaintChildrenToWindow((WindowPtr) pDrawable); - (*pScreen->GetImage) (pDrawable, sx, sy, w, h, format, planemask, pdstLine); - cs->GetImage = pScreen->GetImage; - pScreen->GetImage = compGetImage; -} - -static void -compGetSpans(DrawablePtr pDrawable, int wMax, DDXPointPtr ppt, int *pwidth, - int nspans, char *pdstStart) -{ - ScreenPtr pScreen = pDrawable->pScreen; - CompScreenPtr cs = GetCompScreen(pScreen); - - pScreen->GetSpans = cs->GetSpans; - if (pDrawable->type == DRAWABLE_WINDOW) - compPaintChildrenToWindow((WindowPtr) pDrawable); - (*pScreen->GetSpans) (pDrawable, wMax, ppt, pwidth, nspans, pdstStart); - cs->GetSpans = pScreen->GetSpans; - pScreen->GetSpans = compGetSpans; -} - -static void compSourceValidate(DrawablePtr pDrawable, int x, int y, int width, int height, unsigned int subWindowMode) @@ -182,9 +145,8 @@ compSourceValidate(DrawablePtr pDrawable, pScreen->SourceValidate = cs->SourceValidate; if (pDrawable->type == DRAWABLE_WINDOW && subWindowMode == IncludeInferiors) compPaintChildrenToWindow((WindowPtr) pDrawable); - if (pScreen->SourceValidate) - (*pScreen->SourceValidate) (pDrawable, x, y, width, height, - subWindowMode); + (*pScreen->SourceValidate) (pDrawable, x, y, width, height, + subWindowMode); cs->SourceValidate = pScreen->SourceValidate; pScreen->SourceValidate = compSourceValidate; } @@ -447,12 +409,6 @@ compScreenInit(ScreenPtr pScreen) cs->CloseScreen = pScreen->CloseScreen; pScreen->CloseScreen = compCloseScreen; - cs->GetImage = pScreen->GetImage; - pScreen->GetImage = compGetImage; - - cs->GetSpans = pScreen->GetSpans; - pScreen->GetSpans = compGetSpans; - cs->SourceValidate = pScreen->SourceValidate; pScreen->SourceValidate = compSourceValidate; diff --git a/xserver/composite/compint.h b/xserver/composite/compint.h index d501bad65..423b641ff 100644 --- a/xserver/composite/compint.h +++ b/xserver/composite/compint.h @@ -168,8 +168,6 @@ typedef struct _CompScreen { Window overlayWid; CompOverlayClientPtr pOverlayClients; - GetImageProcPtr GetImage; - GetSpansProcPtr GetSpans; SourceValidateProcPtr SourceValidate; } CompScreenRec, *CompScreenPtr; diff --git a/xserver/composite/compwindow.c b/xserver/composite/compwindow.c index 54b4e6ac4..73a1871a0 100644 --- a/xserver/composite/compwindow.c +++ b/xserver/composite/compwindow.c @@ -72,10 +72,17 @@ compCheckWindow(WindowPtr pWin, void *data) else { assert(pWinPixmap == pParentPixmap); } - assert(0 < pWinPixmap->refcnt && pWinPixmap->refcnt < 3); - assert(0 < pScreenPixmap->refcnt && pScreenPixmap->refcnt < 3); - if (pParentPixmap) - assert(0 <= pParentPixmap->refcnt && pParentPixmap->refcnt < 3); + + assert(0 < pWinPixmap->refcnt) + assert(pWinPixmap->refcnt < 3); + + assert(0 < pScreenPixmap->refcnt); + assert(pScreenPixmap->refcnt < 3); + + if (pParentPixmap) { + assert(0 <= pParentPixmap->refcnt); + assert(pParentPixmap->refcnt < 3); + } return WT_WALKCHILDREN; } @@ -446,7 +453,7 @@ compReparentWindow(WindowPtr pWin, WindowPtr pPriorParent) compUnredirectOneSubwindow(pPriorParent, pWin); compRedirectOneSubwindow(pWin->parent, pWin); /* - * Add any implict redirect due to synthesized visual + * Add any implicit redirect due to synthesized visual */ if (compImplicitRedirect(pWin, pWin->parent)) compRedirectWindow(serverClient, pWin, CompositeRedirectAutomatic); |