maim icon indicating copy to clipboard operation
maim copied to clipboard

Herbstluftwm - transparent windows

Open AndrewOlsen opened this issue 8 years ago • 11 comments
trafficstars

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

AndrewOlsen avatar Sep 28 '17 18:09 AndrewOlsen

Which maim version are you using?

naelstrof avatar Sep 28 '17 19:09 naelstrof

v5.4.66

AndrewOlsen avatar Sep 28 '17 21:09 AndrewOlsen

Try v5.4.68 please.

naelstrof avatar Sep 28 '17 21:09 naelstrof

That version is working correctly

AndrewOlsen avatar Sep 28 '17 21:09 AndrewOlsen

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.

naelstrof avatar Sep 28 '17 22:09 naelstrof

maim -s is also working as intended.

Screenshot: test

AndrewOlsen avatar Sep 28 '17 23:09 AndrewOlsen

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)?

naelstrof avatar Sep 28 '17 23:09 naelstrof

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

AndrewOlsen avatar Sep 28 '17 23:09 AndrewOlsen

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.

naelstrof avatar Sep 28 '17 23:09 naelstrof

Of course! Is what you wanted?

Full screenshot: full

The transparent frame: single

AndrewOlsen avatar Sep 28 '17 23:09 AndrewOlsen

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.

naelstrof avatar Sep 28 '17 23:09 naelstrof