Bug 475889

Summary: Error message after aborting "Window under cursor" capture mode on Wayland with auto-save turned on
Product: [Applications] Spectacle Reporter: Patrick Silva <bugseforuns>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED FIXED    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2023-10-20 19:00:37 UTC
Created attachment 162463 [details]
screenshot

STEPS TO REPRODUCE
1. make sure "Save file to default folder" option is check in Spectacle settings
2. open Spectacle on Wayland
3. click on "Window under cursor" button
4. press ESC key

OBSERVED RESULT
"Window under cursor" capture mode is aborted, Spectacle opens and an error message says
"Cannot save an empty screenshot image". Please see the attached screenshot.

EXPECTED RESULT
no error message

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-10-24 19:57:55 UTC
Can reproduce with those steps.
Comment 2 Patrick Silva 2024-07-31 23:34:27 UTC
Cannot reproduce with Spectacle 24.05.2.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Graphics Platform: Wayland