resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
495 stars 49 forks source link

add sleep to classic selection destroy as well #378

Closed N-R-K closed 4 months ago

N-R-K commented 4 months ago

selection classic is still the default for many people who are using a compositor. adding a hacky sleep similar to selection edge seems to fix it on my end.

Fixes: https://github.com/resurrecting-open-source-projects/scrot/issues/284

N-R-K commented 4 months ago

For testing I used this to select a video playing in firefox:

$ ./scrot -s -lmode=classic,width=8,color=#ff3838

9/10 times the (discolored) border would end up in the screenshot. After the patch, I haven't been able to reproduce it.

(Should also note that I'm not running any compositor. And edge mode never seems to get into the screenshot for me, with or without the sleep.)