GNOME Bugzilla – Bug 771192
Screenshots of Chromium use the wrong (non-maximized) window size
Last modified: 2018-02-23 13:33:50 UTC
Created attachment 335253 [details] screenshot When trying to take a screenshot of a maximized Chromium window (CSD mode), the resulting screenshot is cropped to the size Chromium had _before_ maximization. See attached screenshot (note round corners). This only affects 'window' screenshots, not whole-screen. chromium ~53.x mutter ~3.20.x/3.21.x
> When trying to take a screenshot What are your steps to take a screenshot?
(In reply to André Klapper from comment #1) > > When trying to take a screenshot > > What are your steps to take a screenshot? I usually call gnome-shell's ScreenshotWindow() via D-Bus (that is, my screenshot-and-imgur script does). (The script is at https://github.com/grawity/hacks/blob/master/desktop/cap)
(In reply to Mantas Mikulėnas from comment #2) > (In reply to André Klapper from comment #1) > > > When trying to take a screenshot > > > > What are your steps to take a screenshot? > > I usually call gnome-shell's ScreenshotWindow() via D-Bus (that is, my > screenshot-and-imgur script does). > > (The script is at https://github.com/grawity/hacks/blob/master/desktop/cap) Short version: sleep 3 && gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell/Screenshot -m org.gnome.Shell.Screenshot.ScreenshotWindow true true true /tmp/shot.png Just verified that Alt+PrintScreen is affected, too. (External tools such as 'maim' aren't.) Also, forgot to mention – this is regular X11 (not Wayland/Xwayland).
I think this is a chrome bug, see https://bugs.chromium.org/p/chromium/issues/detail?id=641318
That seems very similar. Though in my case the window _is_ usually redrawn: - When I maximize Chrome, the whole window is fully drawn and usable, just not *screenshotable* (not even after using it for a while). - When I open the overview, Chrome does look 'cropped' for ~0.2sec but quickly flickers to regular (the same is particularly noticeable in the workspaces side panel).
*** Bug 765951 has been marked as a duplicate of this bug. ***
Appears to be fixed by: https://gitlab.gnome.org/GNOME/mutter/commit/19bf4cf4f830d8bc3beaa8f9f61bc9adc13a1bbc