summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-09-25 14:19:08 +0300
committerAdam Jackson <ajax@redhat.com>2016-09-28 15:25:07 -0400
commit6c6f09aac7f1d1367a042087b7681c7fdf1d1e0f (patch)
tree77e88249fd2d327116a2025a366baedecac9e9f4 /dix
parent380c2ca25ec4dd330f938e382ff4af60bc253785 (diff)
xace: Don't censor window borders
GetImage is allowed to return window border contents, so don't remove that from the returned image. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'dix')
-rw-r--r--dix/dispatch.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index adcc9cffd..e11137760 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -2187,12 +2187,8 @@ DoGetImage(ClientPtr client, int format, Drawable drawable,
return BadAlloc;
WriteReplyToClient(client, sizeof(xGetImageReply), &xgi);
- if (pDraw->type == DRAWABLE_WINDOW) {
- pVisibleRegion = NotClippedByChildren((WindowPtr) pDraw);
- if (pVisibleRegion) {
- RegionTranslate(pVisibleRegion, -pDraw->x, -pDraw->y);
- }
- }
+ if (pDraw->type == DRAWABLE_WINDOW)
+ pVisibleRegion = &((WindowPtr) pDraw)->borderClip;
if (linesPerBuf == 0) {
/* nothing to do */
@@ -2251,8 +2247,6 @@ DoGetImage(ClientPtr client, int format, Drawable drawable,
}
}
}
- if (pVisibleRegion)
- RegionDestroy(pVisibleRegion);
free(pBuf);
return Success;
}