-
Notifications
You must be signed in to change notification settings - Fork 52
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
Content captured by scrot -f -s
differs from the content that is frozen on.
#381
Comments
No, not intentional.
Just realized that $ scrot -f -s --line 'mode=edge' # doesn't freeze The manpage doesn't say anything about |
Looking at it closer, it seems that the > grab server The sleep basically widened the race window and made it visible. The proper ordering should be to ungrab the server after the screenshot is captured, not before. |
Okay, it seems that This was without using any compositor, maybe using compositor it would work? |
@xnoe Try out the following commit and see if that fixes your issue. https://github.com/N-R-K/scrot/commit/c7e91b190b9d95d9b47380492d0609659b5a5779.patch Also, since you're using a compositor, please try both of the following: $ scrot -f -s --line 'mode=edge'
$ scrot -f -s --line 'mode=classic' |
Hello, I have just tested that commit and tried both of those commands, freezing and capturing work fine with both. However, when I use the |
this patch makes a couple different changes: * previously the grab/ungrab was happening inside of selection_classic::{create,destroy}. this meant that `--freeze` was ineffective when edge mode was used. the patch moves those calls outside of it, so that `--freeze` can work on edge mode as well. * because the grab/ungrab was happening inside selection destroy, there were multiple races. one of them was that the server would be ungrabbed after selection was done but *before* the shot was captured. the sleep introduced in commit 93e475d widened the race window and made it more easily noticeable. the patch makes it so that we don't ungrab the server until the shot is actually taken. Fixes: resurrecting-open-source-projects#381
I'm getting the same glitches with last scrot (june release), with or without using scrot --select --line width=2,opacity=60,color="red",mode=edge you can see the animation getting smaller and all the rectangles shrinking, appears that all the animation frames gets captured. Workarounds
System updateddistro: Arch Linux x86_64
kernel: 6.6.52-1-lts
shell: bash 5.2.37
term: tmux
compositor: picom 12.3-2 (Last)
scrot: 1.11.1-1 |
Hello all,
After having upgraded my installation of scrot to version 1.11.1 earlier today, I found that when trying to screenshot content such as YouTube videos with
scrot -f -s
, when the screenshot is taken, the content of the screenshot differs from what was frozen on during selection.Using
git bisect
I found that the commit that introduced this difference in behavior was 93e475dRemoving the lines from
src/scrot_selection.c
that were added with that commit restores scrot to its original behaviour even on latest version.I am running Arch Linux with i3-gaps under X11 as my Window Manager, using picom as my compositor.
Is this an intentional change in behavior?
The text was updated successfully, but these errors were encountered: