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 703447 - [Screenshot] Application menus are not displayed when 'Grab the current window' option is selected
[Screenshot] Application menus are not displayed when 'Grab the current windo...
Status: RESOLVED OBSOLETE
Product: gnome-screenshot
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-screenshot-maint
gnome-screenshot-maint
: 667272 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-07-02 08:10 UTC by celine.LEGUAY
Modified: 2019-07-24 10:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-screenshot_currentwindowmenus.patch (1.37 KB, patch)
2013-10-14 14:07 UTC, manuel.BACHMANN@eurogiciel.fr
none Details | Review

Description celine.LEGUAY 2013-07-02 08:10:24 UTC
Steps to reproduce:
1. Start and log in
2. Open an application that has menu (eg: gedit)
3. Open "Screenshot" application 
4. Select 'Grab the current window' option and select more than 2 seconds for "Grab after a delay of" option
5. Click "Take Screenshot" and then click an options menu from the application opened at Step 2 (e.g.: 'Edit' from gedit)
Expected result:
6. Menu is displayed in the picture
Actual result:
6. Menu is not displayed in the picture (You can see that the "Edit" menu is selected, but the menu is not displayed)
Comment 1 manuel.BACHMANN@eurogiciel.fr 2013-10-14 14:07:43 UTC
Created attachment 257260 [details] [review]
gnome-screenshot_currentwindowmenus.patch

It seems the "bbbs" method used by the "Current window" option doesn't catch the menus.

Please find attached a very simple workaround, which basically calculates a GdkRectangle from the current window, and then screenshots this rectangle. The menus display correctly.

However, I'm pretty sure this won't work under Wayland, plus I'm interested to know where to find the source code of :

g_dbus_connection_call_sync (connection, "org.gnome.Shell.Screenshot",

so I could fix this more elegantly.
Comment 2 Kévin THIERRY 2013-10-15 08:27:19 UTC
This bug still appears in Gnome 3.10 (tested on Fedora 20).
Comment 3 Kévin THIERRY 2013-11-04 15:22:04 UTC
Review of attachment 257260 [details] [review]:

Works fine for me.
Comment 4 gnome.vrb 2016-11-18 21:54:15 UTC
(In reply to Kévin THIERRY from comment #3)
> Review of attachment 257260 [details] [review] [review]:
> 
> Works fine for me.

Patch works fine on me too.

Tested in latest gnome-screenshot 3.23.0 ( GNOME Shell 3.22.2 )
Comment 5 Cosimo Cecchi 2019-07-24 09:57:34 UTC
*** Bug 667272 has been marked as a duplicate of this bug. ***
Comment 6 Cosimo Cecchi 2019-07-24 10:01:10 UTC
Let's use https://gitlab.gnome.org/GNOME/gnome-screenshot/issues/22 to track this issue, now that we migrated to Gitlab.

The patch is actually a neat idea, but I don't think that's going to work in every situation. Since the screenshot code lives in the window manager, I think that it should be possible to make ScreenshotWindow behave correctly wrt sub-windows such as menus instead.