maim icon indicating copy to clipboard operation
maim copied to clipboard

Inconsistent behaviour on decorations between `--select` and `--geometry`

Open ghost opened this issue 6 years ago • 1 comments

On KDE Plasma, when using maim --select and selecting a window, the window decorations are replaced with part of the screen contents (apparently, relative to where the selected window was originally spawned). The problem seems to happen with any application.

internal

(Here, the content of the top of the screen is being shown instead of Alacritty's title bar.)

By using maim --geometry $(slop), the problem does not occur.

slop

The problem also happens on the whole window border when they are enabled:

border

maim --version is v5.5.3; slop --version is v7.4.

ghost avatar Jul 28 '19 15:07 ghost

It seems this is related to the way KDE renders its window decorations. If I use maim -s it correctly ignores all windows behind behind a transparent window.

maim

However, you can see the background when using maim --geometry $(slop).

slop

When using the maim -i $(xdotool getactivewindow) command, which should only screenshot the active window, it fully ignores the window decorations.

xdotool

This makes me believe that this probably can't fully be resolved with the way KDE handles these decorations, and might have to be a trade-of between privacy of underlying windows and screen decorations when using maim on KDE.

However, I have not looked into the actual code and hope to be corrected!

Geweldig avatar Jan 08 '20 14:01 Geweldig