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

Window screenshots are incorrectly sized, resulting in an undesired border #236

Open
adatum opened this issue Jul 16, 2019 · 12 comments
Open

Comments

@adatum
Copy link

adatum commented Jul 16, 2019

Expected behaviour

Alt+Print Screen should take a screenshot of only the window in focus.

Actual behaviour

The screenshot area is larger than the window, leaving an undesired border. In the image below, some of the desktop background is showing as a border around the window screenshot.
mate_window_screenshot

I'm not certain, but the problem seems to be limited to windows. Dialog boxes, such as "About MATE" show up correctly without the undesired border in window screenshots.

Steps to reproduce the behaviour

Open any window, eg. file manager, browser, terminal, and take a window screenshot with Alt+Print Screen.

MATE general version

1.22.1

Package version

1.22.1-1.fc30

Linux Distribution

Fedora 30 MATE


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@lukefromdc
Copy link
Member

This is CONFIRMED here, and note that it happens only when the window borders included in the screenshot and (if using marco) compositing is used. I can see it with marco(w compositing) and with metacity, and I'm pretty sure that what's happening is the screenshot is picking up both visible and invisible borders (used for resize from outside the visible border area starting with marco 1.22.2/1.23/1 and also used in metacity).

This does NOT happen with IceWM, which does not support invisible borders, and with compiz-reloaded mate-screenshot can't pick up the borders at all. Thus, this is a surprise side effect of mate-desktop/marco#503 , which solved the problem of windows being very hard to resize with the mouse in some metacity themes

@adatum
Copy link
Author

adatum commented Jul 17, 2019

Thanks for confirming. Now that you mentioned it, I just noticed the invisible window borders that make it much easier to resize windows. The size of the invisible borders does seem to match the undesired screenshot borders.

I don't have a specific date when the issue was first noticed, but it appeared only fairly recently and does seem to agree with the invisible border feature's merge and eventual release.

@raveit65
Copy link
Member

Latest marco in fedora support invisible borders.
https://koji.fedoraproject.org/koji/buildinfo?buildID=1288352
marco-1.22.2-1.fc30

* Mon Jun 17 2019 Wolfgang Ulbrich <fedora@raveit.de> - 1.22.2-1
- update 1.22.2 release
- add support for invisible borders

And yes , i can confirm this.

@raveit65
Copy link
Member

It's not the same but you can exclude the window-decoration from screenshots.

[rave@mother ~]$ gsettings get org.mate.screenshot include-border
false

Bildschirmfoto zu 2019-07-17 09-14-40

This confirms that it is a problem with the new invisible-borders.

@clefebvre
Copy link
Contributor

@monsta also related you mentioned were the little theme thumbs in the theme selector.

@lukefromdc
Copy link
Member

I can confirm an "ears" issue with corners on theme thumbnails. which is a transparency issue

@adatum
Copy link
Author

adatum commented Nov 23, 2019

This issue is still present with MATE 1.22.2 and Fedora 31.

@InfoLibre
Copy link

InfoLibre commented Dec 6, 2019

I've got this bug with Kazam, mate-screenshot, ScreenGrab and Shutter on Linux Mint MATE 19.3.

@adatum
Copy link
Author

adatum commented Jul 3, 2020

Issue persists in MATE 1.24.0 and Fedora 32.

Any progress on this?

@InfoLibre
Copy link

Websites with ugly screenshots began to appear : https://tugaleres.com/2020/07/13/linux-mint-migration-de-la-version-19-3-vers-la-version-20/
🎃

@lukefromdc
Copy link
Member

As a workaround, you should be able to temporarily turn compositing off in marco from "Windows" in mate-control-center, so as to suppress the invisible borders and keep the wide,dark border off your screenshot. Simpler to exclude the window decorations unless you need them to be shown however,

@davidhedlund
Copy link

davidhedlund commented Apr 19, 2023

As a workaround, you should be able to temporarily turn compositing off in marco from "Windows" in mate-control-center, so as to suppress the invisible borders and keep the wide,dark border off your screenshot. Simpler to exclude the window decorations unless you need them to be shown however,

Thanks, this could be executed with: gsettings set org.mate.Marco.general compositing-manager false

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

No branches or pull requests

6 participants