Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sleep to classic selection destroy as well #378

Merged
merged 1 commit into from
May 31, 2024

Conversation

N-R-K
Copy link
Collaborator

@N-R-K N-R-K commented May 29, 2024

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: #284

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: resurrecting-open-source-projects#284
@N-R-K N-R-K marked this pull request as ready for review May 29, 2024 04:15
@N-R-K
Copy link
Collaborator Author

N-R-K commented May 29, 2024

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.)

@N-R-K N-R-K added this to the v1.11 milestone May 30, 2024
@N-R-K N-R-K merged commit 93e475d into resurrecting-open-source-projects:master May 31, 2024
18 checks passed
@N-R-K N-R-K deleted the add-sleep branch May 31, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scrot --select borders caught up in the screenshot
1 participant