Revert "composite: Only copy bits from the parent pixmap when absolutely necessary"

This reverts commit 2ab2454151

In the pParent->drawable.depth == pWin->drawable.depth case, pWin may
already have valid contents, which need to be copied to the new pixmap.
This commit is contained in:
Michel Dänzer
2025-12-12 02:47:04 +02:00
committed by Enrico Weigelt
parent b7e6a90580
commit 2bcaa973be

View File

@@ -540,10 +540,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.