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 <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1711>
This commit is contained in:
parent
c8607ca66f
commit
0a54e24721
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue