Closed N-R-K closed 6 months ago
It should fix the issue, but some actual real-world testing is still needed.
The opacity setting doesn't seem to work in general:
scrot -s -l width=4,opacity=1
I see no difference between master and this PR, both are broken, the line isn't transparent at all, it does blend oddly with whatever is under it however.
Why not just remove it since nobody complained about it not working in all this time?
The opacity setting doesn't seem to work in general:
Are you running under a compositor that supports _NET_WM_WINDOW_OPACITY
?
since nobody complained about it not working in all this time?
It seems to be working fine (except the 100 vs 255 part) for the person that opened the bug report https://github.com/resurrecting-open-source-projects/scrot/issues/281:
Instead, opacity=255 is slightly see through, but opacity=100 is completely opaque.
I'm running xcompmgr, seems it doesn't. picom (a fork of xcompmgr) also doesn't it seems.
Should probably document that it can't be any compositor, too.
picom (a fork of xcompmgr) also doesn't it seems
What WM were you running? Perhaps this flag makes it work?
spectrwm. Still doesn't work with that flag.
If no one can test this, I'll just merge it in a day or two, since the math adds up.
current code treats opacity as [0, 100] even though the manpage documents it as being [0, 255].
Fixes: https://github.com/resurrecting-open-source-projects/scrot/issues/281