After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698799 - Some part of "active window" screenshots are transparent.
Some part of "active window" screenshots are transparent.
Status: RESOLVED OBSOLETE
Product: gnome-screenshot
Classification: Core
Component: general
3.8.x
Other Linux
: Normal major
: ---
Assigned To: gnome-screenshot-maint
gnome-screenshot-maint
Depends on:
Blocks:
 
 
Reported: 2013-04-24 21:36 UTC by Uğur
Modified: 2021-05-25 12:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot taken with gnome-screenshotter (7.71 KB, image/png)
2013-04-24 21:39 UTC, Uğur
Details
Screenshot taken with xfce4-screenshotter (55.68 KB, image/png)
2013-04-24 21:42 UTC, Uğur
Details
nautilus screenshot transparent background (57.28 KB, image/png)
2013-06-09 16:28 UTC, Eugene Lipchansky
Details
screenshot of nautilus - transparent background in the viewer (122.78 KB, image/png)
2013-06-09 16:31 UTC, Eugene Lipchansky
Details
screenshots (741.39 KB, image/jpeg)
2013-10-16 15:05 UTC, Eddy Castillo
Details

Description Uğur 2013-04-24 21:36:33 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
Comment 1 Uğur 2013-04-24 21:39:31 UTC
Created attachment 242371 [details]
Screenshot taken with gnome-screenshotter
Comment 2 Uğur 2013-04-24 21:42:50 UTC
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.
Comment 3 Uğur 2013-04-25 13:05:51 UTC
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.
Comment 4 Matthias Clasen 2013-04-26 10:41:07 UTC
if that change has any effect on the problem, it can only be accidental.
Comment 5 Eugene Lipchansky 2013-06-09 16:28:42 UTC
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.
Comment 6 Eugene Lipchansky 2013-06-09 16:31:22 UTC
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.
Comment 7 Dominique Leuenberger 2013-07-05 09:35:12 UTC
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)
Comment 8 Murray Cumming 2013-08-02 08:00:12 UTC
I'm getting this too on Ubuntu Raring.
Comment 9 Eddy Castillo 2013-10-16 15:05:24 UTC
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.
Comment 10 daniel 2020-06-05 12:37:05 UTC
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
Comment 11 André Klapper 2021-05-25 12:37:40 UTC
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.