Bug 470267

Summary: Spectacle cannot screenshot itself.
Product: [Applications] Spectacle Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde, nate
Priority: NOR    
Version: git-master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
URL: https://discuss.kde.org/t/how-to-take-a-screenshot-of-spectacle/1684/2?u=rokejulianlockhart
Latest Commit: Version Fixed In:

Description Roke Julian Lockhart Beedell 2023-05-25 20:22:49 UTC
STEPS TO REPRODUCE AND OBSERVED RESULT

1. Invoke Spectacle.

2. Attempt to select spectacle by clicking Active Window on its GUI.
3. Spectacle disappears.

2. Attempt to use the Active Window key-bind (by default, LWIN+PRINT) to capture Spectacle.
3. Spectacle forces KWin to redesignate the active window transparently (presumably by disappearing for a timespan of less than a frame).

EXPECTED RESULT

Spectacle should be able to capture itself.

SOFTWARE/OS VERSIONS

Windows: Inapplicable.
macOS: Inapplicable.
Operating System: openSUSE Tumbleweed 20230520
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION

Kernel Version: 6.3.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Comment 1 Nate Graham 2023-05-31 18:20:25 UTC
If Spectacle could screenshot its own window in Active Window mode, then it would be impossible for it to screenshot any other window, so I'm afraid this request makes no sense.

If you want to do this, change the behavior of pressing the PrintScreen key while Spectacle is already open to open a new instance, and then that new instance can take screenshots of the old old as you would expect.