Bug 458713

Summary: Spectacle cannot take a screenshot of its own Annotate dialog
Product: [Applications] Spectacle Reporter: Szczepan Hołyszewski <rulatir>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde, nate
Priority: NOR    
Version: 22.08.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Szczepan Hołyszewski 2022-09-04 20:37:29 UTC
SUMMARY

Specctacle cannot take a screenshot of its own Annotate dialog, which is preventing me from creating a screenshot to demonstrate an unrelated UI issue with the Annotate dialog.

STEPS TO REPRODUCE

1. Open Spectacle
2. Set up a delayed whole desktop screenshot with 15s delay
3. Press the button to take the screenshot and start the timer. Spectacle will minimize itself.
4. While the timer is running, unminimize Spectacle and open the Annotate dialog.
5. Wait for the screenshot to be taken.
6. Close the annotate dialog to return to Spectacle's main UI

OBSERVED RESULT

The image in the main UI does not update.

EXPECTED RESULT

The image in the main UI should be the updated with the new screenshot showing Spectacle's Annotate window that was active at the moment when the timer triggered.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.25
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.3-051903-generic (64-bit)
Graphics Platform: X11
Processors: 6 × Intel® Core™ i5-8400 CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B24
System Version: 2.0
Comment 1 Nate Graham 2022-09-09 03:23:29 UTC
You'll need to use two Spectacle windows for this. In the first Spectacle window, show the thing you want, and then open a new window of Spectacle and use that window to take a screenshot of the first.