From d6fc3aa717b70da1160829c08a5e48aeb82ddf5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 12 Dec 2025 02:47:04 +0200 Subject: [PATCH] Revert "composite: Only copy bits from the parent pixmap when absolutely necessary" This reverts commit https://github.com/X11Libre/xserver/commit/2ab24541515390b76c736e0949a9ab9bdb5c681c In the pParent->drawable.depth == pWin->drawable.depth case, pWin may already have valid contents, which need to be copied to the new pixmap. --- composite/compalloc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/composite/compalloc.c b/composite/compalloc.c index d16f318c4d..a0d532ea80 100644 --- a/composite/compalloc.c +++ b/composite/compalloc.c @@ -543,10 +543,6 @@ compNewPixmap(WindowPtr pWin, int x, int y, int w, int h) pPixmap->screen_x = x; pPixmap->screen_y = y; - if (pWin->backgroundState != None) { - return pPixmap; - } - /* * Copy bits from the parent into the new pixmap so that it will * have "reasonable" contents in case for background None areas.