composite: add a comment

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2025-09-25 15:54:12 +03:00
committed by Enrico Weigelt
parent 2ab2454151
commit 2c3d96e3ca

View File

@@ -544,6 +544,13 @@ compNewPixmap(WindowPtr pWin, int x, int y, int w, int h)
return pPixmap;
}
/*
* Copy bits from the parent into the new pixmap so that it will
* have "reasonable" contents in case for background None areas.
*
* This can be very expensive, so we only do it when we absolutely have to.
*/
if (pParent->drawable.depth == pWin->drawable.depth) {
GCPtr pGC = GetScratchGC(pWin->drawable.depth, pScreen);