Bug 501884 - Rectangular region capture over an xwayland app cannot be copied to the clipboard
Summary: Rectangular region capture over an xwayland app cannot be copied to the clipb...
Status: RESOLVED DUPLICATE of bug 500366
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.3.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-22 20:29 UTC by Liarus1001
Modified: 2025-04-09 16:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
video of the bug (3.01 MB, video/mp4)
2025-03-22 20:30 UTC, Liarus1001
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liarus1001 2025-03-22 20:29:41 UTC
SUMMARY

Using the "Capture Rectangular Region" over an xwayland app such as game in my case, makes it so spectacle doesn't copy the image properly into the clipboard, as an extra note, what is strange is that using  meta + v to see the clipboard history, the captured images are present, however they cannot be pasted in any other software, like krita, discord, or anywhere else.

Other capture methods such as "Capture Active window" or "Capture entire desktop" work perfectly fine, only "Capture Rectangular Region" has that behavhior.

STEPS TO REPRODUCE
1. Have a xwayland window open (a game as an example)
2. Use the shortcut to trigger "Capture Rectangular Region"
3. Try to copy / paste the image in any software that supports pasting images.

OBSERVED RESULT

The captured images cannot be pasted anywhere.

EXPECTED RESULT

The captured images should paste just like any other capture methods.

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6950 XT

ADDITIONAL INFORMATION

This bug used to be inconsistant in the past, sometimes it happened, sometimes it didn't, recently it started just, not working at all (sorry i did not take note of the KDE updates that completely broke it, as i simply got used to dealing with the bug by just capturing the entire window/saving the image and uploading it instead)
Comment 1 Liarus1001 2025-03-22 20:30:44 UTC
Created attachment 179650 [details]
video of the bug

In this video i demonstrate the bug, i try to paste screenshots that i took with "Capture Rectangular Region", but nothing happens at all.
Comment 2 John Kizer 2025-04-08 18:37:09 UTC
Hi - a couple of questions to hopefully help narrow things down:

* Does pasting into a different application, like KolourPaint, LibreOffice Writer, etc. work?
* Does activating a different item from the clipboard history, then re-activating the screenshot, enable it to be pasted? (Looking at https://bugs.kde.org/show_bug.cgi?id=500366 )

Thanks!
Comment 3 Liarus1001 2025-04-08 20:43:17 UTC
(In reply to John Kizer from comment #2)
> Hi - a couple of questions to hopefully help narrow things down:
> 
> * Does pasting into a different application, like KolourPaint, LibreOffice
> Writer, etc. work?
> * Does activating a different item from the clipboard history, then
> re-activating the screenshot, enable it to be pasted? (Looking at
> https://bugs.kde.org/show_bug.cgi?id=500366 )
> 
> Thanks!

- Does pasting into a different application, like KolourPaint, LibreOffice

It does not, though it's quite inconsistant, sometimes it does work, but most of the time it does not, sorry i know this is vague, but i'm genuinely not able to find a pattern.

- Does activating a different item from the clipboard history, then re-activating the screenshot, enable it to be pasted? (Looking at https://bugs.kde.org/show_bug.cgi?id=500366 )

Yes it does, i can reproduce this
Comment 4 John Kizer 2025-04-09 16:43:44 UTC
Thanks! It sounds like it's likely a connected underlying issue, so I'm merging this together with that other existing report since some exploration has already been done there.

Hopefully bringing together more examples of how it manifests can help with eventually identifying a solution :-)

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