naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.15k stars 78 forks source link

Herbstluftwm - transparent windows #115

Open AndrewOlsen opened 6 years ago

AndrewOlsen commented 6 years ago

I noticed while using Herbstluftwm that maim thinks windows are transparent if the attribute frame_bg_transparent is set to true.

Here is a screen of the frames with a transparent background: transparent_true

And here is the same screen with non transparent background: transparent_false

naelstrof commented 6 years ago

Which maim version are you using?

AndrewOlsen commented 6 years ago

v5.4.66

naelstrof commented 6 years ago

Try v5.4.68 please.

AndrewOlsen commented 6 years ago

That version is working correctly

naelstrof commented 6 years ago

Just to make sure, when you click on the transparent terminals while running maim -s, does it work as you intend? (It should screenshot the transparent window by itself, without any background).

To get around this functionality, you can run maim -g $(slop) instead.

AndrewOlsen commented 6 years ago

maim -s is also working as intended.

Screenshot: test

naelstrof commented 6 years ago

maim -sshould still have the transparency of the terminal, the image generated should be the transparent terminal composed onto a transparent background. It looks to me like the transparency was discarded in that image.

Could you give me a full screen shot with terminal transparency enabled(maim), with a shot of the specific terminal with transparency enabled(maim -s)?

AndrewOlsen commented 6 years ago

I apologize that I wasn't clear enough, my terminals have no transparency. A feature of the window manager allows the frame to have a transparent background like so:

frame

instead of like this: solid_frame

naelstrof commented 6 years ago

Could you test if maim -s retains the transparency? This is a new feature that has had little testing, I just want to make sure it works as I intend.

AndrewOlsen commented 6 years ago

Of course! Is what you wanted?

Full screenshot: full

The transparent frame: single

naelstrof commented 6 years ago

Yes! This is what I wanted. Thank you. It definitely looks wrong, as if the transparent block is offset incorrectly. I'll have to take a look later. I'll leave this open until I figure out what's wrong.