Bug 500296

Summary: Spectacle won't open via PrintScreen when certain context menus are open
Product: [Applications] Spectacle Reporter: Octavia Togami <octavia.togami+kdebugs>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Octavia Togami 2025-02-18 05:46:42 UTC
SUMMARY
When certain context / right-click menus are opened, such as those of Konsole or IntelliJ, PrintScreen will not open Spectacle.

STEPS TO REPRODUCE
1. Ensure Spectacle is configured to "Capture Rectangular Region" on PrintScreen.
2. Open Konsole.
3. Right-click on Konsole to open the menu.
4. Hit the PrintScreen key.

OBSERVED RESULT
Nothing happens. No logs in `journalctl` either, so it's not crashing.

EXPECTED RESULT
Spectacle opens and allows me to capture the menu in the screenshot.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.13.2-arch1-1
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Comment 1 Noah Davis 2025-02-18 13:25:19 UTC
Are you on X11 or Wayland?
Comment 2 Octavia Togami 2025-02-18 16:22:54 UTC
X11.
Comment 3 Noah Davis 2025-02-18 19:04:46 UTC
Unfortunately, this is an issue that cannot be fixed. That's just how context menus are on X11, unless they're actually visual elements of the app window.
Comment 4 Noah Davis 2025-02-18 19:07:29 UTC
The way to work around the issue is to use a delayed capture.