summaryrefslogtreecommitdiff
path: root/xserver/Xext/shm.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-02-18 17:16:39 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2018-02-18 17:16:39 +0000
commit59f36f1072242e554a7d6d64138db12b321a86bf (patch)
tree2a157e8f9e17d04bc4e0efde0ca7e9db5346cc37 /xserver/Xext/shm.c
parent1d0ff518f50b7e33f90ad75637db6090055f2d96 (diff)
Update to xserver 1.19.6. bug fix release
Diffstat (limited to 'xserver/Xext/shm.c')
-rw-r--r--xserver/Xext/shm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/xserver/Xext/shm.c b/xserver/Xext/shm.c
index b9e7f1821..a95c91cbf 100644
--- a/xserver/Xext/shm.c
+++ b/xserver/Xext/shm.c
@@ -650,9 +650,8 @@ ProcShmGetImage(ClientPtr client)
wBorderWidth((WindowPtr) pDraw) + (int) pDraw->height)
return BadMatch;
visual = wVisual(((WindowPtr) pDraw));
- pVisibleRegion = NotClippedByChildren((WindowPtr) pDraw);
- if (pVisibleRegion)
- RegionTranslate(pVisibleRegion, -pDraw->x, -pDraw->y);
+ if (pDraw->type == DRAWABLE_WINDOW)
+ pVisibleRegion = &((WindowPtr) pDraw)->borderClip;
}
else {
if (stuff->x < 0 ||
@@ -715,9 +714,6 @@ ProcShmGetImage(ClientPtr client)
}
}
- if (pVisibleRegion)
- RegionDestroy(pVisibleRegion);
-
if (client->swapped) {
swaps(&xgi.sequenceNumber);
swapl(&xgi.length);