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

This reverts commit 7e6c55cc9f.

In the pParent->drawable.depth == pWin->drawable.depth case, pWin may
already have valid contents, which need to be copied to the new pixmap.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2092>
This commit is contained in:
Michel Dänzer 2025-10-30 16:37:22 +01:00 committed by Alan Coopersmith
parent fff0023339
commit d4be568863

View file

@ -544,9 +544,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;
if (pParent->drawable.depth == pWin->drawable.depth) {
GCPtr pGC = GetScratchGC(pWin->drawable.depth, pScreen);