kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=e23ddddb9f4549e25e706fd5b8e5fd3dd20cb958

commit e23ddddb9f4549e25e706fd5b8e5fd3dd20cb958
Author: Kim Woelders <[email protected]>
Date:   Sat Dec 16 20:11:11 2017 +0100

    Fix EDrawableDumpImage()
    
    Same issue as previous commit when grabbing windows.
---
 src/eimage.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/eimage.c b/src/eimage.c
index 0203dc15..a4bac2e1 100644
--- a/src/eimage.c
+++ b/src/eimage.c
@@ -592,9 +592,8 @@ EDrawableDumpImage(EX_Drawable draw, const char *txt)
    EXGetGeometry(draw, NULL, NULL, NULL, &w, &h, NULL, NULL);
    if (w <= 0 || h <= 0)
       return;
-   imlib_context_set_drawable(draw);
-   im =
-      imlib_create_image_from_drawable(NoXID, 0, 0, w, h, !EServerIsGrabbed());
+   im = EImageGrabDrawableScaled(ELookupXwin(draw), draw, NoXID,
+                                0, 0, w, h, w, h, 0, 0);
    imlib_context_set_image(im);
    imlib_image_set_format("png");
    sprintf(buf, "%s-%#x-%d.png", txt, draw, seqn++);

-- 


Reply via email to