GNOME Bugzilla – Bug 698799
Some part of "active window" screenshots are transparent.
Last modified: 2021-05-25 12:37:40 UTC
gnome-screenshot now working as expected when capturing window. Attached two captures of same window. One of them taken with gnome-screenshot and other taken with xfce4-screenshotter. gnome-screenshot one looks transparent and have got some artifacts on borders. on the other hand xfce4-screenshotter takes a clear capture of same window. I am on a laptop with nvidia optimus. I tried take screenshot with both graphic cards and got same result. Taken with gnome-screenshot 3.8.1 Taken with xfce4-screenshotter 1.8.1
Created attachment 242371 [details] Screenshot taken with gnome-screenshotter
Created attachment 242372 [details] Screenshot taken with xfce4-screenshotter I am really sorry for bad bug report. I don't want to use an image hosting. Also can't find a way to attach multiple files in one comment.
I can confirm that this problem appears in gnome-screenshot versions >= 3.7.4 I am using archlinux and glib2 version is 2.36.1-2 ##Changing line in screenshot-utils.c## connection = g_application_get_dbus_connection (g_application_get_default ()); g_dbus_connection_call_sync (connection, "org.gnome.Shell.Screenshot", "/org/gnome/Shell/Screenshot", "org.gnome.Shell.Screenshot", method_name, method_params, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); ##To## connection = g_application_get_dbus_connection (g_application_get_default ()); g_dbus_connection_call_sync (connection, "org.gnome.Shell", "/org/gnome/Shell", "org.gnome.Shell", method_name, method_params, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); Solve the problem.
if that change has any effect on the problem, it can only be accidental.
Created attachment 246361 [details] nautilus screenshot transparent background This problem also happens to me on archlinux too with gnome-screenshot 3.8.2 installed https://bugs.archlinux.org/task/35655 Please see the attachment. Standard Adwaita theme was set for this test. In the same time the screenshots of the whole desktop and region were taken without any problems. It only occurs when you take screenshot of the active window.
Created attachment 246362 [details] screenshot of nautilus - transparent background in the viewer If you open the previous attachment direcly in the browser you might not notice the transparent background because of white background of the web browser. I've attached the screenshot (captures as the region of the screen) of how it looks in the viewer.
The issue seems not specific to Arch, as I received a similar report in the openSUSE Bug Tracker (https://bugzilla.novell.com/show_bug.cgi?id=827739)
I'm getting this too on Ubuntu Raring.
Created attachment 257431 [details] screenshots GNOME 3.10.1 on Archlinux and the bug is still there. Or is it a different one? I noticed 2 things now: 1. If the active window is using the new header bar, screenshots are taken without any problem. But if it is still using normal titlebar then it happens (transparent window bug). 2. If I apply border effect with gnome-screenshot, elements inside the window have borders (Icons, text, scrollbars, etc.) in the screenshot.
I'm observing the same problem on Debian stable / buster I've just moved the hard disk from a system with an Intel graphics chipset to another system with an NVIDIA K2200. In the Intel-based system, it was taking screenshots successfully. In the system with NVIDIA, I observed the following: - if I use alt-print-screen on a single window, the captured PNG file is all transparency - if I run gnome-screenshot -w from the command line, it is the same problem - I tried screenshotting different windows (e.g. Firefox, Terminal), same problem for all of them - if I screenshot the entire desktop, it works, I can then use gimp to crop the screenshot as a workaround Exact product versions: gnome-screenshot 3.30.0-2 NVIDIA driver: NVIDIA-Linux-x86_64-440.82.run kernel: 4.19.0-9-amd64
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/gnome-screenshot/-/issues/ Thank you for your understanding and your help.