From bb2bd1a1bd145dab5c2ce4e2bed5d254b9564a4f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 30 Sep 2024 17:57:32 +0200 Subject: [PATCH] (!1711) xnest: use dixDestroyPixmap() instead of direct driver call Direct calls to ScreenRec->DestroyPixmap() blocks cleaning up the wrapping jungle, so use the proper dix function instead. See: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1754 Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/GC.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xnest/GC.c b/hw/xnest/GC.c index f8d99d6a2..075ccac83 100644 --- a/hw/xnest/GC.c +++ b/hw/xnest/GC.c @@ -225,7 +225,7 @@ xnestChangeClip(GCPtr pGC, int type, void *pValue, int nRects) * current pixmap contents. */ pGC->clientClip = (*pGC->pScreen->BitmapToRegion) ((PixmapPtr) pValue); - (*pGC->pScreen->DestroyPixmap) ((PixmapPtr) pValue); + dixDestroyPixmap((PixmapPtr) pValue, 0); pValue = pGC->clientClip; break;