kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=b87e99e02e36dcc4f7c6d35851610f74f849c943
commit b87e99e02e36dcc4f7c6d35851610f74f849c943 Author: Kim Woelders <k...@woelders.dk> Date: Sat Dec 16 17:39:37 2017 +0100 Fix magnifier pixel value display Apparently, when using XShmGetImage to get an XImage for a window, the image no longer includes subwindows (like when using IncludeInferiors in GC). When using XGetImage the XImage still includes subwindows. Changing EImageGrabDrawable() to EImageGrabDrawableScaled() means that we use imlib_create_scaled_image_from_drawable() instead of imlib_create_image_from_drawable(). imlib_create_scaled_image_from_drawable() is implemented in such a way that the drawable to be grabbed is always copied to a pixmap first. --- src/magwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/magwin.c b/src/magwin.c index 60c62faa..361e274e 100644 --- a/src/magwin.c +++ b/src/magwin.c @@ -91,7 +91,7 @@ MagwinGetPixel(EX_Drawable draw, unsigned int x, unsigned int y) EImage *im; unsigned int *pd, pixel = 0; - im = EImageGrabDrawable(draw, NoXID, x, y, 1, 1, 0); + im = EImageGrabDrawableScaled(NULL, draw, NoXID, x, y, 1, 1, 1, 1, 0, 0); if (im) { pd = (unsigned int *)EImageGetData(im); --