-
Notifications
You must be signed in to change notification settings - Fork 6
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
Bug: selection does not work without a compositor (regression) #212
Comments
What I've been kicking around is making the selection area colors fully configurable because that's an accessibility problem aside from compositor settings, if someone needs higher contrast or is otherwise using a color scheme where it's hard to see the edge of the selection area.
I guess I could just add it as a CLI option, would be a pretty easy change. Sometimes "good enough" is, well, good enough.
…On Thu, Nov 28, 2024, at 6:31 PM, Katze wrote:
Originally reported in #201 <#201> I wanted to open this as an actual issue since it is a regression.
I used to run gscreenshot 3.5.0 on awesomewm without a compositor because I simply don't need a compositor.
However now that my distro had a version bump I'm on 3.6.3 which presumably added the overlay with transparency and has *no option to disable that* (read: to behave like 3.5.0).
This means that somewhere between 3.5.0 and 3.6.3 there was a change that broke gscreenshot's selection mode for all users without a compositor.
It would be enough to add a CLI option to disable the transparent overlay (and instead just have the selection borders, as previously), though ideally there would be a way for this to be detected at runtime and enable the new transparency feature only when support is available.
I'm fine if support for setups without a compositor is out of scope for gscreenshot but honestly I don't want to go looking for a screenshot tool that actually works *again*.
The old ones (looking at scrot) have visual glitches all over the place, or sometimes just don't work, and others require a constantly running background process or something like that.
It's getting really hard to find a tool that just "lets me take a screenshot of a selection of my screen by spawning a process on the most simple and basic desktop setup imaginable", which was what gscreenshot did for me for about a year now.
—
Reply to this email directly, view it on GitHub <#212>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AATXBREOMEWLVDCH5VJD6S32C6RVHAVCNFSM6AAAAABSWADAOOVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4YDGNBYGQYTSMA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
I have a change slated for the next release of gscreenshot that adds a "--select-color" command line parameter which takes an RGB or RGBA hexadecimal string for the region selection highlighting. It's available on the "dev" branch currently if you want to check it out before the next release.
|
I just tried commit e3ef8df and unless I messed up (and I don't think I did, otherwise I wouldn't see |
If you want I can probably build you an ISO with a bare-bones setup that exhibits the issue in a qemu VM where you'd expose your local git checkout using virtfs so you can keep editing on your regular machine and only click a desktop icon in the VM to rebuild or something like that. |
Do another pull and see if it works better now. I was expanding the test suite and found a spot where the color wasn't getting passed correctly. I also made it so passing an empty string There's also a new |
Edit: tested with 5cde322 Okay, so now the behaviour of the colour is consistent across the GUI, CLI, and specificaly the However:
Also I just noticed that when running The over-extending of the screenshot area when selecting a window is a rather big problem in my opinion since it presents a potential information leak (i.e. sharing window A still includes pixels of window B which may be sensitive in some way). I also think that when taking a screenshot of a specific window (i.e. when hovering over windows in the |
Good to hear! The border offsets are actually really interesting. gscreenshot doesn't do that natively, it's using slop (X11) or slurp (Wayland), which then return the screen region which gscreenshot uses directly. With some experimentation and knowing the border width the regions are just numbers so it wouldn't be that hard to calculate an offset to make them behave a little more consistently. It's also entirely possible that there's a bug in those tools themselves. |
Originally reported in #201 I wanted to open this as an actual issue since it is a regression.
I used to run gscreenshot 3.5.0 on awesomewm without a compositor because I simply don't need a compositor.
However now that my distro had a version bump I'm on 3.6.3 which presumably added the overlay with transparency and has no option to disable that (read: to behave like 3.5.0).
This means that somewhere between 3.5.0 and 3.6.3 there was a change that broke gscreenshot's selection mode for all users without a compositor.
It would be enough to add a CLI option to disable the transparent overlay (and instead just have the selection borders, as previously), though ideally there would be a way for this to be detected at runtime and enable the new transparency feature only when support is available.
I'm fine if support for setups without a compositor is out of scope for gscreenshot but honestly I don't want to go looking for a screenshot tool that actually works again.
The old ones (looking at scrot) have visual glitches all over the place, or sometimes just don't work, and others require a constantly running background process or something like that.
It's getting really hard to find a tool that just "lets me take a screenshot of a selection of my screen by spawning a process on the most simple and basic desktop setup imaginable", which was what gscreenshot did for me for about a year now.
The text was updated successfully, but these errors were encountered: