thenaterhood / gscreenshot

A simple graphical frontend for multiple screenshot backends including scrot, imagemagick, PIL, imlib2, and grim.
62 stars 6 forks source link

Bug: Taking screenshot of selection covers entire screen in white on i3 #201

Closed cptlobster closed 1 month ago

cptlobster commented 1 month ago

When using the selection tool to take a screenshot, the entire screen area is initially covered in an opaque white overlay. Hovering over a window covers only that window. When I click/drag, it disappears and the region I'm selecting is covered. While I believe that the box is intended to show up, I don't think the full opacity is intended, and it makes it difficult to see what I'm selecting.

Video

In the following video, I have vim open as an example for the hover behavior. I opened gscreenshot, clicked the "Selection" tool, and then moved between vim and i3bar. Then, I closed vim, and started another selection. I made a selection, which took the screenshot successfully.

https://github.com/user-attachments/assets/53d0668b-3545-47bb-9bf8-aa0439705fa9

Version info

thenaterhood commented 1 month ago

Interestingly you're actually not the first I've heard of this one, though I can't reproduce it. There must be a particular compositor setup that causes it.

It's on my radar to fix, I just need to think about how to do it since it seems to be a fairly unusual problem.

cptlobster commented 1 month ago

There must be a particular compositor setup that causes it.

I didn't realize this, but I wasn't actually starting a compositor. I thought it was in my i3config but it must not be part of the default (generated by i3-config-wizard) or I might have accidentally deleted it. When I start picom manually, the transparency works as intended.

so yes, I suppose the "particular compositor setup" is no compositor at all. Probably not much you can do about transparency without a compositor, so this bug is likely just user error. Thanks for pointing me in the right direction on this issue!