<?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>490803</bug_id>
          
          <creation_ts>2024-07-25 04:18:50 +0000</creation_ts>
          <short_desc>Copying time to clipboard doesn&apos;t work on Wayland</short_desc>
          <delta_ts>2024-08-10 12:54:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Digital Clock widget</component>
          <version>6.1.3</version>
          <rep_platform>Manjaro</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://forum.manjaro.org/t/copy-time-date-to-clipboard-does-not-work-on-wayland/166027</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="linux-aarhus">fh</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>4wy78uwh</cc>
    
    <cc>nate</cc>
    
    <cc>p.r.worrall</cc>
    
    <cc>postix</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/31018c000bbad5dc3b263b7f452b0795dd153ceb</cf_commitlink>
          <cf_versionfixedin>6.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2339994</commentid>
    <comment_count>0</comment_count>
    <who name="linux-aarhus">fh</who>
    <bug_when>2024-07-25 04:18:50 +0000</bug_when>
    <thetext>SUMMARY
Righclicking digital clock to copy date and time 

STEPS TO REPRODUCE
1. use a wayland session
2. rightclick digital clock
3. navigate to copy to clipboard
4. select an entry with left mouse button
5. open clipboard

OBSERVED RESULT

Clipboard is empty 


EXPECTED RESULT

Clipboard should contain a value from the displayed list

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.10.0-4-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen Threadripper PRO 5945WX 12-Cores
Memory: 62,6 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: LENOVO
Product Name: 30E000GMMT
System Version: ThinkStation P620

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340158</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-07-25 18:58:25 +0000</bug_when>
    <thetext>Can reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2342464</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-08-02 10:02:13 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6195</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2343523</commentid>
    <comment_count>3</comment_count>
    <who name="David Redondo">kde</who>
    <bug_when>2024-08-06 13:09:07 +0000</bug_when>
    <thetext>Git commit 31018c000bbad5dc3b263b7f452b0795dd153ceb by David Redondo.
Committed on 06/08/2024 at 12:54.
Pushed by davidre into branch &apos;master&apos;.

wayland: Check serial instead of focus for changing selections

Clients can have valid reasons to change the selection when the
same user action that also caused the selection request
to lose keyboard focus. This is notbaly the case for menus
created from a Plasma panel which itself will not take focus
but when clicking on action it only triggers after the menu
is closed.
This also matches what weston and sway do.

M  +3    -7    autotests/integration/helper/copy.cpp
M  +7    -0    autotests/integration/xwayland_selections_test.cpp
M  +7    -7    autotests/wayland/client/test_datadevice.cpp
M  +1    -1    autotests/wayland/client/test_selection.cpp
M  +10   -10   autotests/wayland/client/test_wayland_seat.cpp
M  +4    -4    autotests/wayland/server/test_datacontrol_interface.cpp
M  +1    -1    src/wayland/datadevice.cpp
M  +1    -1    src/wayland/datadevice.h
M  +1    -1    src/wayland/primaryselectiondevice_v1.cpp
M  +1    -1    src/wayland/primaryselectiondevice_v1.h
M  +24   -26   src/wayland/seat.cpp
M  +2    -2    src/wayland/seat.h
M  +5    -2    src/wayland/seat_p.h
M  +3    -2    src/xwayland/clipboard.cpp
M  +3    -2    src/xwayland/primary.cpp

https://invent.kde.org/plasma/kwin/-/commit/31018c000bbad5dc3b263b7f452b0795dd153ceb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>