Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maim includes bspwm's borders #210

Open
reinzanini opened this issue Jul 15, 2020 · 2 comments
Open

maim includes bspwm's borders #210

reinzanini opened this issue Jul 15, 2020 · 2 comments

Comments

@reinzanini
Copy link

Even with -n 2, maim still includes bspwm's borders in its screenshots

Example of a command: maim -B -u -s -n 2 | xclip -selection c -t image/png
Result:
image

@timakro
Copy link

timakro commented Apr 7, 2021

Same issue with xmonad. Setting border here to zero hides the border on the screenshot.

Currently there is only --nodecorations which deals with more complex window decorations which are really their own X windows. I assume (and this is just a guess) more complex desktop environments like GNOME or KDE use this kind of extra wrapper window for the title bar, etc.

I suggest adding an extra option --noborder to maim which removes the border in WMs like xmonad, bspwm as proposed above. I'm willing to make a PR for this, what do you think @naelstrof? How does i3 fit into this I wonder?

@timakro
Copy link

timakro commented Apr 7, 2021

Alternatively we could add --nodecorations 3 which would do the same recursive window descent as --nodecorations 2 and set the border to zero as well. I prefer the --noborder option because it clearly separates the border removal from the window descent approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants