<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>464478</bug_id>
          
          <creation_ts>2023-01-18 20:38:36 +0000</creation_ts>
          <short_desc>Spectacle fails to copy screenshots taken with &quot;Rectangular Region&quot; capture mode.</short_desc>
          <delta_ts>2023-01-23 23:02:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>Spectacle</product>
          <component>General</component>
          <version>22.12.1</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>463199</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David G.">david</reporter>
          <assigned_to name="Boudhayan Gupta">me</assigned_to>
          <cc>ceggy</cc>
    
    <cc>david</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>mtaha190502+kde</cc>
    
    <cc>nate</cc>
    
    <cc>olib141</cc>
    
    <cc>p.r.worrall</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2199229</commentid>
    <comment_count>0</comment_count>
    <who name="David G.">david</who>
    <bug_when>2023-01-18 20:38:36 +0000</bug_when>
    <thetext>SUMMARY
Using the Rectangular Region capture mode in Spectacle and double clicking to take a screenshot while &quot;Copy image to clipboard&quot; or &quot;Copy file location to clipboard&quot; is selected under &quot;After taking a screenshot:&quot;, 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 &quot;Rectangular Region&quot; Capture mode and press &quot;Take a screenshot&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2199232</commentid>
    <comment_count>1</comment_count>
    <who name="David G.">david</who>
    <bug_when>2023-01-18 20:50:33 +0000</bug_when>
    <thetext>I forgot to mention, manually copying from the Spectacle window (either using CTRL+C or using the &quot;Copy image to clipboard&quot; button) works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2199710</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Worrall">p.r.worrall</who>
    <bug_when>2023-01-19 11:53:56 +0000</bug_when>
    <thetext>Works OK on X11 but I can reproduce the bug on Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2200058</commentid>
    <comment_count>3</comment_count>
    <who name="Oliver Beard">olib141</who>
    <bug_when>2023-01-20 11:47:22 +0000</bug_when>
    <thetext>A user has indicated to me that they believe the issue first appeared after KF 5.102 (5.101 was fine).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2200063</commentid>
    <comment_count>4</comment_count>
    <who name="Muhammed Taha">mtaha190502+kde</who>
    <bug_when>2023-01-20 12:02:42 +0000</bug_when>
    <thetext>same issue on Fedora 37 KDE Spin

KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2200079</commentid>
    <comment_count>5</comment_count>
    <who name="hexchain">kde</who>
    <bug_when>2023-01-20 13:11:26 +0000</bug_when>
    <thetext>Dup of 463199?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201081</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-01-23 23:02:34 +0000</bug_when>
    <thetext>Yep.

*** This bug has been marked as a duplicate of bug 463199 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>