From 0a54e24721d0f347cf55b22e71e1e7fc3aba6600 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 30 Sep 2024 17:57:32 +0200 Subject: [PATCH] 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 Part-of: --- 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 a50803ea5..f9f60177f 100644 --- a/hw/xnest/GC.c +++ b/hw/xnest/GC.c @@ -224,7 +224,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;