From d9cf1a7a9d2476f50026408e20b96aec34269688 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 12 Aug 2025 13:57:47 +0200 Subject: [PATCH] panoramiX: XineramaGetImageData(): scope ScreenRegion Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/panoramiX.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c index 3f7e22ac4e..5edad63bb9 100644 --- a/Xext/panoramiX.c +++ b/Xext/panoramiX.c @@ -1136,7 +1136,7 @@ XineramaGetImageData(DrawablePtr *pDrawables, unsigned long planemask, char *data, int pitch, Bool isRoot) { - RegionRec SrcRegion, ScreenRegion, GrabRegion; + RegionRec SrcRegion, GrabRegion; BoxRec SrcBox, *pbox; int x, y, w, h, i, j, nbox, size, sizeNeeded, ScratchPitch, inOut, depth; DrawablePtr pDraw = pDrawables[0]; @@ -1171,6 +1171,7 @@ XineramaGetImageData(DrawablePtr *pDrawables, TheBox.y1 = pScreen->y; TheBox.y2 = TheBox.y1 + pScreen->height; + RegionRec ScreenRegion; RegionInit(&ScreenRegion, &TheBox, 1); inOut = RegionContainsRect(&ScreenRegion, &SrcBox); if (inOut == rgnPART)