Bug 464478

Summary: Spectacle fails to copy screenshots taken with "Rectangular Region" capture mode.
Product: [Applications] Spectacle Reporter: d_avery <o.rootedavid.o>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ceggy, kde, kde, mt190502, nate, o.rootedavid.o, olib141, p.r.worrall
Priority: NOR Keywords: wayland
Version: 22.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description d_avery 2023-01-18 20:38:36 UTC
SUMMARY
Using the Rectangular Region capture mode in Spectacle and double clicking to take a screenshot while "Copy image to clipboard" or "Copy file location to clipboard" is selected under "After taking a screenshot:", nothing is copied to the clipboard.

This only happens with this specific capture mode.

STEPS TO REPRODUCE
1. Launch a KDE Plasma Wayland session.
2. Start Spectacle.
3. Select "Rectangular Region" Capture mode and press "Take a screenshot" or use the hotkey for this mode.
4. Double click the selected region.
5. Attempt pasting clipboard contents into any field that accepts an image.

OBSERVED RESULT
Whatever was already present in the clipboard is pasted.

EXPECTED RESULT
The newly taken screenshot is supposed to be pasted.

SOFTWARE/OS VERSIONS 
Linux: Arch Linux, kernel version 6.1.6-arch1-3 (64-bit)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
I am unaware of when this issue started occurring.
Using 3 monitors, of which 2 are external, 1 is laptop screen.
Using KDE Plasma Wayland.
Comment 1 d_avery 2023-01-18 20:50:33 UTC
I forgot to mention, manually copying from the Spectacle window (either using CTRL+C or using the "Copy image to clipboard" button) works.
Comment 2 Paul Worrall 2023-01-19 11:53:56 UTC
Works OK on X11 but I can reproduce the bug on Wayland
Comment 3 Oliver Beard 2023-01-20 11:47:22 UTC
A user has indicated to me that they believe the issue first appeared after KF 5.102 (5.101 was fine).
Comment 4 Muhammed Taha 2023-01-20 12:02:42 UTC
same issue on Fedora 37 KDE Spin

KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Comment 5 hexchain 2023-01-20 13:11:26 UTC
Dup of 463199?
Comment 6 Nate Graham 2023-01-23 23:02:34 UTC
Yep.

*** This bug has been marked as a duplicate of bug 463199 ***