Bug 501644 - Open menus are only included in screenshots
Summary: Open menus are only included in screenshots
Status: RESOLVED NOT A BUG
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: git-master
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-17 14:44 UTC by Patrick Silva
Modified: 2025-03-19 19:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2025-03-17 14:44:41 UTC
STEPS TO REPRODUCE
1. open Kate text editor
2. right-click on the text area
3. while the context menu is open, press printscreen key
4. open "New screenshot" menu on bottom and choose "Active window" or "Full screen" or "Select window" mode

OBSERVED RESULT
screenshot of Kate is taken without the context menu

EXPECTED RESULT
screenshot of Kate is taken with the context menu

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2025-03-17 16:49:14 UTC
It's because when you take a new screenshot with the app already open, Spectacle literally... takes a new screenshot. By that point, the context menu has already closed because of the act of opening Spectacle.

If we did anything different, people would complain that it was impossible to capture changing content until you quit the app.
Comment 2 Patrick Silva 2025-03-18 13:07:06 UTC
Spectacle does not capture the menu in "Active window" mode even when the delay feature is used.
Comment 3 Nate Graham 2025-03-19 18:30:21 UTC
I guess menus aren't counted. That probably makes sense to change, but it would be an enhancement; so it needs a new bug report.
Comment 4 Noah Davis 2025-03-19 19:10:08 UTC
*** This bug has been marked as a duplicate of bug 470341 ***
Comment 5 Noah Davis 2025-03-19 19:11:02 UTC
This is an issue specific to the KWin screenshot backend.
Comment 6 Noah Davis 2025-03-19 19:13:42 UTC
Actually since this was originally about taking a new screenshot after opening a context menu, I'm putting the status back to RESOLVED NOTABUG. You may be interested in the bug report that I had marked this as a duplicate of though.