Summary: | Child pop-ups of window not included in "Window Under Cursor" and "Active Window" capture modes | ||
---|---|---|---|
Product: | [Applications] Spectacle | Reporter: | Andrew Shark <ashark> |
Component: | General | Assignee: | Boudhayan Gupta <me> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kde, nate, noahadvs |
Priority: | NOR | ||
Version: | 22.08.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | How interface with additional checkbox for window with popup could look |
Description
Andrew Shark
2022-12-08 12:12:50 UTC
In Rectangular Region and Full Screen modes, this would not be needed, so really, it only makes sense for Window Under Cursor and Active Window modes. Instead, we should just do it this way by default, and not even need an option. Not doing it is a bug IMO. Agree, I also think it is ok to always capture a window with menu and remove an option to disable this (of course user still has a way to avoid menu capturing by just escaping it before taking screenshot). I noticed that there are applications in which this _already_ works. For example in Cuttlefish and in Elisa capturing window with menu works. But other applications does not work this way. For example, Dolphin or Kate. Try to capture a window with menu. When cursor becomes aim shape to choose window, the popup disappears. May this be a QtWidgets vs QtQuick application problem? > Currently there is no standard way to capture window including its popup menus. The only way to do it now is capturing the rectangle area. For example, I captured this attachment https://bugs.kde.org/show_bug.cgi?id=462702#c3 manually. You can also use something like Window Under Cursor if you set a delay, open the menu, then wait for the capture. It is annoying though. Maybe there's something we could do for Wayland in combination with some changes to KWin, but I don't think it's fixable on X11 because of how X11 treats popup menus. > Snagit (a WinOS application) allows you to do such thing, see instruction here Ironically, steps 5-7 for SnagIt are pretty much exactly what needs to be done with Spectacle in order to take a screenshot of a menu. > 5. Enable Time Delay to set up additional time to open the menu to capture on the screen. > 6. Select Delay and set number of seconds for delay. > 7. Click Capture or press Print Screen. > The countdown will then begin. Open the desired menu and move the cursor over the menu to capture. (In reply to Andrew Shark from comment #2) > I noticed that there are applications in which this _already_ works. > For example in Cuttlefish and in Elisa capturing window with menu works. > But other applications does not work this way. For example, Dolphin or Kate. > Try to capture a window with menu. When cursor becomes aim shape to choose > window, the popup disappears. > May this be a QtWidgets vs QtQuick application problem? Indeed, it is a Qt Widgets vs Qt Quick issue. In Qt Widgets, the menus are real popup menus. Qt Quick Controls 2 Menu is actually a part of its parent window which has the advantage of being easier to screenshot and the disadvantage of being impossible to stick outside the parent window. The disadvantage is usually felt when dealing with small windows or large menus. |