Bug 401650

Summary: Can't take screenshots of Qt drop-down menus with keyboard shortcut
Product: [Applications] Spectacle Reporter: Jan Przybylak <jplx256>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED WORKSFORME    
Severity: normal CC: 4wy78uwh, kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jan Przybylak 2018-12-02 14:22:58 UTC
SUMMARY
Screenshotting Qt drop-down menus (right click, global menu and possibly others) with a keyboard shortcut is not possible. It works in GTK apps (I tried Firefox), but it doesn't work on the Desktop, in Dolphin or Kate (probably every Qt app).

Menus can be screenshotted by opening the menu and then pressing Meta to open Spectacle via the application overview, but using a keyboard shortcut doesn't work and doesn't produce an error message.


STEPS TO REPRODUCE
1. Right click on something to open a drop-down menu
2. Try to take screenshot with the keyboard shortcut
3. Be annoyed

OBSERVED RESULT
No screenshot is taken and no error message appears

EXPECTED RESULT
Take a screenshot

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 4.19.4
(available in About System)
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2
Comment 1 Kai Uwe Broulik 2018-12-03 08:00:09 UTC
This is impossible with X and GTK's menus are doing it wrong, sorry. It works on Wayland.
Comment 2 Jan Przybylak 2018-12-03 08:41:43 UTC
Turns out it's not exclusive to spectacle, most keyboard shortcuts don't work when a drop-down menu is open.
What are you saying is impossible, taking screenshots ore using keyboard shortcuts?
Comment 3 Roke Julian Lockhart Beedell 2023-05-25 16:48:59 UTC
The dialogue here seems to indicate that this is impossible, and my experience (https://discuss.kde.org/t/how-to-take-screenshot-of-context-menu-with-spectacle/1682?u=rokejulianlockhart) appears to indicate that this hasn't been resolved yet, yet the resolution of this bug is WORKSFORME and per https://discuss.kde.org/t/how-to-take-screenshot-of-context-menu-with-spectacle/1682/2?u=rokejulianlockhart, it seems to work for some people.

What's the actual status of this bug - WORKSFORME/FIXED, or persistent?