GNOME Bugzilla – Bug 703447
[Screenshot] Application menus are not displayed when 'Grab the current window' option is selected
Last modified: 2019-07-24 10:01:10 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)
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.
This bug still appears in Gnome 3.10 (tested on Fedora 20).
Review of attachment 257260 [details] [review]: Works fine for me.
(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 )
*** Bug 667272 has been marked as a duplicate of this bug. ***
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.