From 912660ab2a764d77c7730472a9dacd9f2fc5533a Mon Sep 17 00:00:00 2001 From: Hinigatsu Date: Sat, 27 Mar 2021 15:36:27 -0300 Subject: [PATCH] Increase 'rx' and 'ry' size by 1 to avoid bad clipping when using --select fix #77 --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index 37d3b2f6..f722134d 100644 --- a/src/main.c +++ b/src/main.c @@ -555,6 +555,9 @@ scrot_sel_and_grab_image(void) } scrot_nice_clip(&rx, &ry, &rw, &rh); + ++rx; + ++ry; + if (! opt.silent) XBell(disp, 0); im = gib_imlib_create_image_from_drawable(root, 0, rx, ry, rw, rh, 1);