maim icon indicating copy to clipboard operation
maim copied to clipboard

When using selection mode -s sometimes I get just the background

Open arielnmz opened this issue 4 years ago • 6 comments

Fedora Linux 31 Awesome WM 4.3 Compositor Compton git-v0.1_beta2

Description:

  • Invoke maim with the -s flag
  • Select an area on the screen, possibly only within a window/client

Result:

Sometimes the screenshot only contains what's on the background

Expected results:

The screenshot contains what's within the selection rectangle

Related: Is it possible to have separate flags for capturing a single window/client or selecting an area?

arielnmz avatar May 11 '20 02:05 arielnmz

Compositor Compton git-v0.1_beta2

By the time of me replying, compton is already deprecated in favour of its fork: picom.

Related: Is it possible to have separate flags for capturing a single window/client or selecting an area?

Definitely should be possible!

foxpy avatar Dec 30 '20 11:12 foxpy

I have a similar issue. I get a blank background when running maim -s on Alacritty. I'm using AwesomeWm with Picom as my compositor.

dylanpjx avatar May 31 '22 05:05 dylanpjx

I get a blank background

It doesn't happen without a screen composer, right?

foxpy avatar Jun 18 '22 10:06 foxpy

Yup, just tested it, works without the compositor.

dylanpjx avatar Jun 19 '22 02:06 dylanpjx

I guess you could play around with compositor settings and maim's OpenGL flag (--no-opengl).

I don't know what else we can do about it.

foxpy avatar Jun 19 '22 16:06 foxpy

I encountered a very similar issue to this and #199. Interestingly, it's only when using awesomewm. Compositor active or not, I would get blank, transparent screenshots when selecting terminal windows running a terminal app such as vim. Doing the same on a different window manager, compositor or not, produces the correct result. Seems to be a bug or quirk with awesomewm itself.

yoshiyoshyosh avatar Oct 06 '22 15:10 yoshiyoshyosh