diff --git a/src/scrot.c b/src/scrot.c index d5b2664..9c90b79 100644 --- a/src/scrot.c +++ b/src/scrot.c @@ -151,6 +151,11 @@ int main(int argc, char *argv[]) } tm = localtime(&timeStamp.tv_sec); + if (!opt.silent) { + XBell(disp, 0); + XFlush(disp); + } + if (opt.note) scrotNoteDraw(image); @@ -624,8 +629,6 @@ static int scrotMatchWindowClassName(Window target) static Imlib_Image scrotGrabShot(void) { - if (!opt.silent) - XBell(disp, 0); return scrotGrabRectAndPointer(0, 0, scr->width, scr->height, false); } diff --git a/src/scrot_selection.c b/src/scrot_selection.c index 21475d6..9174700 100644 --- a/src/scrot_selection.c +++ b/src/scrot_selection.c @@ -345,9 +345,6 @@ static bool scrotSelectionGetUserSel(struct SelectionRect *selectionRect) } scrotNiceClip(&rx, &ry, &rw, &rh); - if (!opt.silent) - XBell(disp, 0); - selectionRect->x = rx; selectionRect->y = ry; selectionRect->w = rw;