<?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>445751</bug_id>
          
          <creation_ts>2021-11-19 14:42:41 +0000</creation_ts>
          <short_desc>Wayland: Clipboard not available in the effect</short_desc>
          <delta_ts>2024-08-16 18:29:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>effects-overview</component>
          <version>git master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=442521</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nate Graham">nate</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>bugseforuns</cc>
    
    <cc>dev.bacteriostat</cc>
    
    <cc>eamonnrea</cc>
    
    <cc>kdedev</cc>
    
    <cc>kinofhek</cc>
    
    <cc>kristen</cc>
    
    <cc>notify</cc>
    
    <cc>zeskotron</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/95a8163c5b5970243ca9d13244026e98bb1b32e1</cf_commitlink>
          <cf_versionfixedin>6.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="Wayland"
          id="4480"
          type_id="31"
          status="+"
          setter="vlad.zahorodnii"
    />
    <flag name="X11"
          id="4481"
          type_id="32"
          status="-"
          setter="vlad.zahorodnii"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2078820</commentid>
    <comment_count>0</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-11-19 14:42:41 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. Copy the text &quot;442830&quot; to the clipboard
2. Activate the Overview effect
3. Type &quot;bug &quot; and then Ctrl+V to paste the text


OBSERVED RESULT
Nothing is pasted


EXPECTED RESULT
The text is pasted, causing the search field to show &quot;bug 442830&quot;, which would display a KRunner entry to open that bug report in my web browser</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2117262</commentid>
    <comment_count>1</comment_count>
    <who name="popov895">popov895</who>
    <bug_when>2022-04-13 16:59:18 +0000</bug_when>
    <thetext>Not sure, but it seems that bug 442521 is related or a duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2117304</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-04-13 19:47:59 +0000</bug_when>
    <thetext>They&apos;re different. This is 100% reproducible always, while Bug 442521 is only sometimes reproducible under certain circumstances. If fixing Bug 442521 won&apos;t fix the issue specific to the Overview effect,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125407</commentid>
    <comment_count>3</comment_count>
    <who name="Felipe Kinoshita">kinofhek</who>
    <bug_when>2022-05-22 04:38:45 +0000</bug_when>
    <thetext>Cannot reproduce</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125777</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-05-23 15:12:51 +0000</bug_when>
    <thetext>Huh, still broken for me with current git master on Wayland. Maybe you&apos;re using X11? It only seems to happen on Wayland.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2126529</commentid>
    <comment_count>5</comment_count>
    <who name="Bacteria">dev.bacteriostat</who>
    <bug_when>2022-05-25 08:14:49 +0000</bug_when>
    <thetext>Can reproduce on Wayland. 

Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166620</commentid>
    <comment_count>6</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2022-10-29 18:20:12 +0000</bug_when>
    <thetext>Can reproduce on Wayland session of neon unstable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177578</commentid>
    <comment_count>7</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-11-25 10:31:57 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3242</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213811</commentid>
    <comment_count>8</comment_count>
    <who name="Zesko">zeskotron</who>
    <bug_when>2023-03-04 11:03:36 +0000</bug_when>
    <thetext>https://github.com/bugaevc/wl-clipboard/issues/149#issuecomment-1454687844

The developer of wl-clipboard claims that Kwin Wayland does not work with wl-clipboard together.

Is that possible if Kwin Wayland fixes the compatibility issue with wl-clipboard which supports different text editors e.g. Micro and Vim?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214347</commentid>
    <comment_count>9</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-03-06 16:14:25 +0000</bug_when>
    <thetext>wl-copy works at least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214373</commentid>
    <comment_count>10</comment_count>
    <who name="Zesko">zeskotron</who>
    <bug_when>2023-03-06 17:03:43 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #9)
&gt; wl-copy works at least.

There are two issues:

1. issue: 
 &quot;wl-copy --clear&quot; does not work to clear the clipboard

2. issue:
Erase the entire clipboard in KDE Klipper, then run  &quot;wl-paste&quot; in Konsole, but it hangs waiting to copy  a new clipboard.


KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt version: 5.15.8
Wayland
Arch Linux or any Arch based Distros</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2217630</commentid>
    <comment_count>11</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-03-21 03:45:39 +0000</bug_when>
    <thetext>Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED &gt; WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2220471</commentid>
    <comment_count>12</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-04-05 03:45:38 +0000</bug_when>
    <thetext>This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED &gt; WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2270659</commentid>
    <comment_count>13</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2023-12-02 20:33:20 +0000</bug_when>
    <thetext>Can reproduce on Plasma 6 beta.

Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2271182</commentid>
    <comment_count>14</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-12-04 21:44:14 +0000</bug_when>
    <thetext>Indeed, can still reproduce. Which makes sense as https://invent.kde.org/plasma/kwin/-/merge_requests/3242 which was supposed to fix this never seems to have gotten merged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2298719</commentid>
    <comment_count>15</comment_count>
    <who name="">fanzhuyifan</who>
    <bug_when>2024-03-11 04:20:14 +0000</bug_when>
    <thetext>*** Bug 483179 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2299157</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-03-11 19:35:53 +0000</bug_when>
    <thetext>*** Bug 483279 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2345394</commentid>
    <comment_count>17</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-08-13 14:04:32 +0000</bug_when>
    <thetext>Git commit 95a8163c5b5970243ca9d13244026e98bb1b32e1 by Vlad Zahorodnii.
Committed on 13/08/2024 at 13:53.
Pushed by vladz into branch &apos;master&apos;.

qpa: Implement clipboard

This allows copy pasting text between the overview and regular clients.

QMimeData::data() has a synchronous API. It is a problem for us, the
compositor, because it means we need to block the main thread to read
the mime data. This change adds a one second timeout. If no data arrives
within the next 1 second, the qpa will give up in order to avoid freezing
the screen further. Not sure how this can be handled better without
changing the API of the QMimeData to add async overloads.

M  +1    -0    src/plugins/qpa/CMakeLists.txt
A  +207  -0    src/plugins/qpa/clipboard.cpp     [License: GPL(v2.0+)]
A  +69   -0    src/plugins/qpa/clipboard.h     [License: GPL(v2.0+)]
M  +9    -0    src/plugins/qpa/integration.cpp
M  +3    -0    src/plugins/qpa/integration.h
M  +1    -1    src/wayland/display.h

https://invent.kde.org/plasma/kwin/-/commit/95a8163c5b5970243ca9d13244026e98bb1b32e1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>