Files
xserver/Xext
Aaron Plattner 92b3cd3206 xace: Fix XaceCensorImage to actually censor the right part of the image
The caller passes arguments into XaceCensorImage that are in
window-relative coordinates. However, the pBuf that it uses to construct
a temporary pixmap has its origin at (x, y) relative to the window in
question. The code to convert the censor region into boxes adjusts for
the Y coordinate, but leaves the X coordinate alone. The result is that
if x is not zero, it censors the wrong part of the image.

Fix this by just translating censorRegion into pixmap-relative
coordinates and using the resulting boxes as-is.

Reported-by: Fabien Lelaquais <Fabien.Lelaquais@roguewave.com>
Link: https://lists.x.org/archives/xorg/2016-August/058165.html
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2016-08-15 13:12:06 -04:00
..
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2015-07-08 16:40:58 -04:00
2014-11-12 10:25:00 +10:00
2016-04-29 11:19:58 -04:00
2016-03-14 11:49:13 -04:00
2014-11-12 10:25:00 +10:00
2016-06-21 11:11:44 -04:00
2014-11-12 10:25:00 +10:00
2016-03-08 10:19:33 -05:00