<?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>482142</bug_id>
          
          <creation_ts>2024-03-01 12:17:06 +0000</creation_ts>
          <short_desc>drag and drop files in Google Chrome renders Chrome unusable</short_desc>
          <delta_ts>2026-01-02 20:36:10 +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>Wayland drag-and-drop</component>
          <version>6.0.4</version>
          <rep_platform>Neon</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=483645</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=489212</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>qt6</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jetchko Jekov">jetchko.jekov</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>adamantgarth</cc>
    
    <cc>agurenko</cc>
    
    <cc>aneesaf1</cc>
    
    <cc>anya.vanillagarden</cc>
    
    <cc>auxsvr</cc>
    
    <cc>bastian.beischer</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>cardinalidiego</cc>
    
    <cc>cesarg9</cc>
    
    <cc>cirioli.spam</cc>
    
    <cc>contact</cc>
    
    <cc>craig.finnegan</cc>
    
    <cc>daniel</cc>
    
    <cc>dapolinario</cc>
    
    <cc>david</cc>
    
    <cc>dinkonin</cc>
    
    <cc>dolphin-bugs-null</cc>
    
    <cc>d_debnath</cc>
    
    <cc>edtoml</cc>
    
    <cc>edu</cc>
    
    <cc>eric.donkersloot</cc>
    
    <cc>florian.flatscher</cc>
    
    <cc>frostynova</cc>
    
    <cc>grzegorz.alibozek</cc>
    
    <cc>hpeter1994</cc>
    
    <cc>hyuri.pimentel</cc>
    
    <cc>jf</cc>
    
    <cc>jjaruszewski</cc>
    
    <cc>jon9097</cc>
    
    <cc>jordan</cc>
    
    <cc>kde.org</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>kdedev</cc>
    
    <cc>kotarf</cc>
    
    <cc>Landgraf132</cc>
    
    <cc>m.kurz</cc>
    
    <cc>marek+kde</cc>
    
    <cc>marianpoltak</cc>
    
    <cc>marius.adrian.g</cc>
    
    <cc>Martin.Corley</cc>
    
    <cc>matthewnnewland</cc>
    
    <cc>me</cc>
    
    <cc>meirgoldstein06</cc>
    
    <cc>msylwester</cc>
    
    <cc>nate</cc>
    
    <cc>nickdiego</cc>
    
    <cc>nplatis</cc>
    
    <cc>postix</cc>
    
    <cc>postnozet</cc>
    
    <cc>reverier.xu</cc>
    
    <cc>riccardo.varotto</cc>
    
    <cc>rm</cc>
    
    <cc>shawn</cc>
    
    <cc>smowtenshi</cc>
    
    <cc>strijbol.niko</cc>
    
    <cc>strong.drum0546</cc>
    
    <cc>ted</cc>
    
    <cc>thomas.steinborn</cc>
    
    <cc>tinoucas</cc>
    
    <cc>tobyfox</cc>
    
    <cc>ulrich.schreiner</cc>
    
    <cc>ungoogled1</cc>
    
    <cc>wingv5289</cc>
    
    <cc>wk</cc>
    
    <cc>xaver.hugl</cc>
    
    <cc>yaroslav</cc>
    
    <cc>yoann.laissus</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/711c5bb43f2823766d5189dc8d567c8f4cec253c</cf_commitlink>
          <cf_versionfixedin>6.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2293365</commentid>
    <comment_count>0</comment_count>
    <who name="Jetchko Jekov">jetchko.jekov</who>
    <bug_when>2024-03-01 12:17:06 +0000</bug_when>
    <thetext>Dragging a file from Dolphin to Google Chrome renders Chrome unusable.
Mouse clicks are not accepted anymore by Chrome. Keyboard work though.

This started after the plasma 6 upgrade.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 14 5401</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2293413</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2024-03-01 14:19:48 +0000</bug_when>
    <thetext>Can reproduce by dragging a .png file to Vivaldi browser running natively on Wayland.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2297802</commentid>
    <comment_count>2</comment_count>
    <who name="">florian.flatscher</who>
    <bug_when>2024-03-09 13:13:26 +0000</bug_when>
    <thetext>Reproducible on Fedora 39 for:
Google Chrome Version 122.0.6261.111 (Official Build) (64-bit)
Google Chrome (unsable) Version 124.0.6342.3 (Official Build) dev (64-bit)
Chromium Version 122.0.6261.69 (Official Build) Fedora Project (64-bit)

Interestingly, in chromium, the window becomes responsive/clickable again after I move the dropped file to another directory using drag &amp; drop. To reproduce:

1) Open Chromium
2) Create a new empty Text-File on Desktop
3) Open Dolphin (Downloads folder)
4) Drag Text-File onto Chromium</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2297803</commentid>
    <comment_count>3</comment_count>
    <who name="">florian.flatscher</who>
    <bug_when>2024-03-09 13:15:49 +0000</bug_when>
    <thetext>Reproducible on Fedora 39 for:
Google Chrome Version 122.0.6261.111 (Official Build) (64-bit)
Google Chrome (unsable) Version 124.0.6342.3 (Official Build) dev (64-bit)
Chromium Version 122.0.6261.69 (Official Build) Fedora Project (64-bit)

Interestingly, in chromium, the window becomes responsive/clickable again
after I move the dropped file to another directory using drag &amp; drop. To
reproduce:

1) Open Chromium
2) Create a new empty Text-File on Desktop
3) Open Dolphin (Downloads folder)
4) Drag Text-File onto Chromium
    -&gt; Chromium becomes unresponsive/unclickable
5) Move the Text-File from Desktop to Dolphins Downloads folder using drag &amp; drop
    -&gt; Chromium becomes responsive/clickable again</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2298335</commentid>
    <comment_count>4</comment_count>
    <who name="Ulrich Schreiner">ulrich.schreiner</who>
    <bug_when>2024-03-10 14:08:40 +0000</bug_when>
    <thetext>Drag/Drop inside the apps also do not work. So drag/drop a link in chrome to the tab-Bar to open it does not work. Same happens with VSCode, so it looks like the bug appears with electron-based apps.

workaround: dot NOT start apps with 

--enable-features=UseOzonePlatform --ozone-platform=wayland

so they run as X11 apps. then everything works. you can check with

kwin-debug-console=&apos;qdbus org.kde.KWin /KWin org.kde.KWin.showDebugConsole&apos;

if the electron-app (chrome, vscode) run native wayland -&gt; drag/drops does not work. if they run as X11, everythings fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2299018</commentid>
    <comment_count>5</comment_count>
    <who name="">simon+kde</who>
    <bug_when>2024-03-11 17:04:10 +0000</bug_when>
    <thetext>Reproducable on Gentoo. Draging &amp; droping a file from Dolphin to Chrome makes Chrome no longer accept mouse inputs, but keyboard input still works. The same issue also appears when draging a screenshot from Spectactle to Chrome (e.g. to a Jira Issue).

SOFTWARE/OS VERSIONS
Operating System:  Gentoo
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.4 (gentoo-sources)
Graphics Platform: Wayland
Processors: AMD Ryzen 9 PRO 6950H
Memory: 31.1 GiB of RAM
Graphics Processor: AMD 6500M/680M Hybrid
Manufacturer: Lenovo
Product Name: Z16 gen1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2300213</commentid>
    <comment_count>6</comment_count>
    <who name="Hyuri">hyuri.pimentel</who>
    <bug_when>2024-03-13 16:29:37 +0000</bug_when>
    <thetext>This is happening in Plasma 5.27 as well (Kubuntu 23.10).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2300687</commentid>
    <comment_count>7</comment_count>
    <who name="Riccardo">riccardo.varotto</who>
    <bug_when>2024-03-14 11:47:44 +0000</bug_when>
    <thetext>Reproducible on Neon User Edition and Unstable 6.0.2

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland

Chrome, Microsoft Edge (stable and beta):    --enable-features=UseOzonePlatform --ozone-platform=wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302574</commentid>
    <comment_count>8</comment_count>
    <who name="">ungoogled1</who>
    <bug_when>2024-03-18 16:31:23 +0000</bug_when>
    <thetext>In plasma-5 there was already a bug with chrome Wayland where it would randomly get stuck into dragging events and ignore further pointer events. This was partially fixed in the latest dev build https://chromiumdash.appspot.com/commit/d6bdbc12fabc1bfa1a17aca5c47afee6e17824fb

In plasma-6 there where some regressions that are not fixed with the patch above:
- dragging text from a page or the url bar to a new tab or bookmark does not work
- dragging file from filemanager and dropping it on the browser makes it unresponsive to further mouse events

which are tracked by the chromium team under
https://issues.chromium.org/issues/329703410
dupe with video: https://issues.chromium.org/issues/327605550

Although they suggest in these issues thats a kwin/plasma-6 issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302581</commentid>
    <comment_count>9</comment_count>
    <who name="Nick Yamane">nickdiego</who>
    <bug_when>2024-03-18 16:48:30 +0000</bug_when>
    <thetext>I&apos;ve also documented other observations that may indicate other KWin bugs, or even underspecified behaviors/cases that must be addressed at the protocol level instead, at https://notes.nickdiego.dev/chromium/wayland-events-during-drag#KWin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302584</commentid>
    <comment_count>10</comment_count>
    <who name="">ungoogled1</who>
    <bug_when>2024-03-18 16:53:32 +0000</bug_when>
    <thetext>I just tried it again and this bug seems to be resolved for me in the new KDE 6.0.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302586</commentid>
    <comment_count>11</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2024-03-18 16:56:20 +0000</bug_when>
    <thetext>The bug persists with Chromium and Vivaldi on my system.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302587</commentid>
    <comment_count>12</comment_count>
    <who name="">ungoogled1</who>
    <bug_when>2024-03-18 16:57:42 +0000</bug_when>
    <thetext>Looking at my earlier message:
1. dragging text from a page or the url bar to a new tab or bookmark does not work
2. dragging file from filemanager and dropping it on the browser makes it unresponsive to further mouse events

Bug 1 was fixed with kde 6.0.2
Bug 2 is still an issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2306461</commentid>
    <comment_count>13</comment_count>
    <who name="Horváth Péter">hpeter1994</who>
    <bug_when>2024-03-28 10:35:49 +0000</bug_when>
    <thetext>Dragging from file manager to Chrome indeed disables mouse actions. But if you drag a file into the window again, without dropping it , then mouse can be used again.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2306725</commentid>
    <comment_count>14</comment_count>
    <who name="Riccardo">riccardo.varotto</who>
    <bug_when>2024-03-29 10:59:08 +0000</bug_when>
    <thetext>It seems the problem is no more present on latest beta versions of chrome and ms-edge.

KDE Plasma Version: 6.0.3
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2313085</commentid>
    <comment_count>15</comment_count>
    <who name="hmnd">david</who>
    <bug_when>2024-04-21 01:46:34 +0000</bug_when>
    <thetext>(In reply to Riccardo from comment #14)
&gt; It seems the problem is no more present on latest beta versions of chrome
&gt; and ms-edge.

I am still able to reproduce this on Chrome v126 + KDE Plasma 6.0.4 + NVIDIA</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2313805</commentid>
    <comment_count>16</comment_count>
    <who name="Eric Donkersloot">eric.donkersloot</who>
    <bug_when>2024-04-23 19:05:30 +0000</bug_when>
    <thetext>Unfortunately, this bug is still not fixed. I can reproduce it as well.

Operating System: openSUSE Tumbleweed 20240419
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.7-1-default (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31,2 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT
Manufacturer: ASUS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2314535</commentid>
    <comment_count>17</comment_count>
    <who name="duhdugg">kde.org</who>
    <bug_when>2024-04-26 16:15:08 +0000</bug_when>
    <thetext>I am also seeing this issue. Accidental click drag on a link also causes it and leads to eventual browser crash.

Reproducible on the Arch chromium package, brave-bin from the AUR, google-chrome-bin from the AUR, and ungoogled-chromium from flathub.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.6.28-1-lts (64-bit)
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2314915</commentid>
    <comment_count>18</comment_count>
    <who name="hexchain">kde</who>
    <bug_when>2024-04-28 15:07:36 +0000</bug_when>
    <thetext>I suspect there are multiple issues. The fix for https://issues.chromium.org/issues/329703410 has already landed in 124 (stable) and 125 (dev), but apparently, people are still seeing a similar issue.

Filed https://issues.chromium.org/issues/336449364 for their awareness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2314960</commentid>
    <comment_count>19</comment_count>
    <who name="Yaroslav Fedevych">yaroslav</who>
    <bug_when>2024-04-28 20:34:11 +0000</bug_when>
    <thetext>I have whatever the very latest Fedora 40 + updates has, and it&apos;s happening regardless whether Chrome is launched as a pure Wayland or an X11 client (!).

Any accidental dragging gesture at all (usually I&apos;m butterfingering the touchpad, or accidentally place a finger on the touchpad just as I&apos;m making a left click) makes left click stop working. What also stops working is trying to invoke the main menu via keyboard shortcuts — Alt+F, for example. If I persist in left-clicking long enough, Chrome will eventually crash.

The funniest thing is that I remember the bug being there before, and in some 5.2x version of Plasma it got fixed. Now it looks like a regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2315312</commentid>
    <comment_count>20</comment_count>
    <who name="mike cirioli">cirioli.spam</who>
    <bug_when>2024-04-30 12:07:06 +0000</bug_when>
    <thetext>chrome Version 124.0.6367.91 (Official Build) (64-bit) on kwin 6.04 - I can reproduce this issue by simply dragging any page element in chrome.  The issue is present for both wayland and x11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2316119</commentid>
    <comment_count>21</comment_count>
    <who name="Anya">anya.vanillagarden</who>
    <bug_when>2024-05-03 14:13:12 +0000</bug_when>
    <thetext>Can reproduce this with Chromium and Discord when they&apos;re running with --enable-features=UseOzonePlatform --ozone-platform=wayland. When attempting to drag and drop a file from Dolphin to Discord or Chromium the mouse cursor changes to the red stop sign thing and the file isn&apos;t dropped. It works without the arguments, running in Xwayland.

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-arch1-1 (64-bit)
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2316576</commentid>
    <comment_count>22</comment_count>
    <who name="flex">frostynova</who>
    <bug_when>2024-05-05 02:20:15 +0000</bug_when>
    <thetext>Chrome on wayland can reproduce this

Chrome version 124.0.6367.118 
Kwin 5.27.11
QT 6.7.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2316665</commentid>
    <comment_count>23</comment_count>
    <who name="">thomas.steinborn</who>
    <bug_when>2024-05-05 09:05:07 +0000</bug_when>
    <thetext>See the corresponding Chromium bug https://issues.chromium.org/issues/336449364#comment12

Copying from the comment: There seems to have been some recent change in Kwin which has caused it to no longer send wl_data_source.{dnd_finished,cancelled} after wl_data_source.dnd_drop_performed in these cases described in the repro steps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2316721</commentid>
    <comment_count>24</comment_count>
    <who name="Yaroslav Fedevych">yaroslav</who>
    <bug_when>2024-05-05 15:16:46 +0000</bug_when>
    <thetext>Can we be sure that it&apos;s kwin as such and not, say, Qt itself? There&apos;s so many moving parts that thinking of trying to bisect it all is filling me with dread.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2318573</commentid>
    <comment_count>25</comment_count>
    <who name="terranova">matthewnnewland</who>
    <bug_when>2024-05-09 15:49:26 +0000</bug_when>
    <thetext>Just wanted to add that I have the same issue on Arch Linux, KDE 6.0.4. Hopefully either KWin or Chrome can come to a resolution soon—I may take a crack at trying to debug myself from the KWin side but I don&apos;t know enough about Wayland or the KDE codebase to be that useful yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2318574</commentid>
    <comment_count>26</comment_count>
    <who name="Jean-Francois Roy">jf</who>
    <bug_when>2024-05-09 16:01:52 +0000</bug_when>
    <thetext>We ideally need a solution in KWin because other applications based on Chromium are also affected and those tend to be on much slower upgrade cycles. Anything Electron (Discord, Slack, VS Code) are affected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319123</commentid>
    <comment_count>27</comment_count>
    <who name="Ted Parvu">ted</who>
    <bug_when>2024-05-12 16:30:42 +0000</bug_when>
    <thetext>Reproducible by trying to drag and drop anything in Vivaldi.

Arch Linux
plasma-desktop 6.0.4-1
wayland 1.22.0-1

additionally I get this clue....

&gt; 12/100737.466353:ERROR:wayland_data_drag_controller.cc(147)] Invalid state when trying to start drag. source=kMouse</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319125</commentid>
    <comment_count>28</comment_count>
    <who name="Ted Parvu">ted</who>
    <bug_when>2024-05-12 16:38:42 +0000</bug_when>
    <thetext>(In reply to Ted Parvu from comment #27)
&gt; Reproducible by trying to drag and drop anything in Vivaldi.
&gt; 
&gt; Arch Linux
&gt; plasma-desktop 6.0.4-1
&gt; wayland 1.22.0-1
&gt; 
&gt; additionally I get this clue....
&gt; 
&gt; &gt; 12/100737.466353:ERROR:wayland_data_drag_controller.cc(147)] Invalid state when trying to start drag. source=kMouse

Looks like this was  fixed https://chromium.googlesource.com/chromium/src/+/b3319430c1155a1716b441f225ef93f16493b5cb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319126</commentid>
    <comment_count>29</comment_count>
    <who name="Ed Tomlinson">edtoml</who>
    <bug_when>2024-05-12 16:45:16 +0000</bug_when>
    <thetext>No this is NOT a fix.   As mentioned above see:  https://issues.chromium.org/issues/336449364</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319182</commentid>
    <comment_count>30</comment_count>
    <who name="Ted Parvu">ted</who>
    <bug_when>2024-05-12 23:26:36 +0000</bug_when>
    <thetext>(In reply to Ed Tomlinson from comment #29)
&gt; No this is NOT a fix.   As mentioned above see: 
&gt; https://issues.chromium.org/issues/336449364

So, where is this bug? 

It seems to be on all Chromium based browsers.... but that the bug is really in KWin?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319186</commentid>
    <comment_count>31</comment_count>
    <who name="Ted Parvu">ted</who>
    <bug_when>2024-05-13 01:08:15 +0000</bug_when>
    <thetext>Found a work-a-round that is working for me.

https://bbs.archlinux.org/viewtopic.php?pid=2166339#p2166339</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319197</commentid>
    <comment_count>32</comment_count>
    <who name="Jean-Francois Roy">jf</who>
    <bug_when>2024-05-13 04:00:15 +0000</bug_when>
    <thetext>(In reply to Ted Parvu from comment #31)
&gt; Found a work-a-round that is working for me.
&gt; 
&gt; https://bbs.archlinux.org/viewtopic.php?pid=2166339#p2166339

Completely disabling drag and drop is a pretty hard workaround to swallow and breaks a number of web apps that rely on it. I too am frustrated when I accidentally soft-lock Chrome, but this workaround should not lessen efforts to fix kwin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319232</commentid>
    <comment_count>33</comment_count>
    <who name="Jakub">jjaruszewski</who>
    <bug_when>2024-05-13 10:19:03 +0000</bug_when>
    <thetext>As stated in Chromium issue:
&gt; There seems to have been some recent change in Kwin which has caused it to no longer send wl_data_source.{dnd_finished,cancelled} after wl_data_source.dnd_drop_performed in these cases described in the repro steps. My understanding is that it&apos;s a kwin bug, though Chromium should minimally protect against this kind of compositor misbehavior and bugs instead of the taking assumptions and stop responding to input events (due to the dnd nested message loop to be kept running indefinitely).

So maybe this is the kwin bug? Reproducible for me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319359</commentid>
    <comment_count>34</comment_count>
    <who name="terranova">matthewnnewland</who>
    <bug_when>2024-05-13 18:50:53 +0000</bug_when>
    <thetext>FWIW this patch seems to work for me KWin side (this is just based on the description of the KWin change in Chromium, I have no idea about regression potential):

```
diff --git a/src/wayland/seat.cpp b/src/wayland/seat.cpp
index 9698156f6f..8cda1a94f4 100644
--- a/src/wayland/seat.cpp
+++ b/src/wayland/seat.cpp
@@ -290,6 +290,7 @@ void SeatInterfacePrivate::endDrag()
             Q_EMIT q-&gt;dragDropped();
             dragTargetDevice-&gt;drop();
             dragSource-&gt;dropPerformed();
+            dragSource-&gt;dndFinished();
         } else {
             dragSource-&gt;dropPerformed();
             dragSource-&gt;dndCancelled();
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319782</commentid>
    <comment_count>35</comment_count>
    <who name="Bastian Beischer">bastian.beischer</who>
    <bug_when>2024-05-15 11:50:06 +0000</bug_when>
    <thetext>@terranova indeed that works and I haven&apos;t noticed any regressions running this for a while.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319811</commentid>
    <comment_count>36</comment_count>
    <who name="Dinko">dinkonin</who>
    <bug_when>2024-05-15 14:55:35 +0000</bug_when>
    <thetext>I also can confirm that @terranova patch works on kwin 6.0.4 on arch and opensuse</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319815</commentid>
    <comment_count>37</comment_count>
    <who name="terranova">matthewnnewland</who>
    <bug_when>2024-05-15 15:04:44 +0000</bug_when>
    <thetext>I have opened a merge request:
https://invent.kde.org/plasma/kwin/-/merge_requests/5730</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319890</commentid>
    <comment_count>38</comment_count>
    <who name="Red">wingv5289</who>
    <bug_when>2024-05-15 20:55:24 +0000</bug_when>
    <thetext>(In reply to terranova from comment #37)
&gt; I have opened a merge request:
&gt; https://invent.kde.org/plasma/kwin/-/merge_requests/5730

This has been fixed by upstream: https://chromium-review.googlesource.com/c/chromium/src/+/5539621</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319902</commentid>
    <comment_count>39</comment_count>
    <who name="terranova">matthewnnewland</who>
    <bug_when>2024-05-15 21:43:27 +0000</bug_when>
    <thetext>I will leave the patch up here in case it helps someone in the meantime but it looks unlikely to be merged. Hopefully the Chromium-side issue is enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319904</commentid>
    <comment_count>40</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2024-05-15 22:05:40 +0000</bug_when>
    <thetext>FWIW, there&apos;s some notes on that MR. It&apos;s not quite right, we&apos;re still missing the cause. If there is a bug kwin side, it needs more investigation.

Can someone give me steps to reproduce. I tried the ones above.

I have both google-chrome-stable and google-chrome unstable and I&apos;m forcing the wayland modes.
I tried dragging a text file from my file manager into the address bar,  and into a web app (Discord). 

That doesn&apos;t match the chrome comments, as I would have expected steps where Chrome is the source of the drag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319906</commentid>
    <comment_count>41</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2024-05-15 22:16:26 +0000</bug_when>
    <thetext>Got it based on my own comment: 

going to here https://www.w3schools.com/html/html5_draganddrop.asp  and running the example freezes the mouse input

but weirdly when you try to drag a second time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319909</commentid>
    <comment_count>42</comment_count>
    <who name="terranova">matthewnnewland</who>
    <bug_when>2024-05-15 22:18:53 +0000</bug_when>
    <thetext>Selecting text in the browser and dragging and releasing elsewhere in the browser was the most consistent repro for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319915</commentid>
    <comment_count>43</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2024-05-15 22:26:59 +0000</bug_when>
    <thetext>Chrome is doing something highly unusual.

[2257948.361] wl_data_device@15.drop()
[2257948.578]  -&gt; wl_data_offer@4278190082.destroy()
[2257948.592] wl_data_source@58.dnd_drop_performed()

We tell the target it&apos;s dropped, then it deletes the offer immediately. So it had a valid offer at the time of drop, but it doesn&apos;t finish that offer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319920</commentid>
    <comment_count>44</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-05-15 22:39:09 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5733</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319927</commentid>
    <comment_count>45</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-05-15 23:03:33 +0000</bug_when>
    <thetext>*** Bug 483494 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319970</commentid>
    <comment_count>46</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2024-05-16 08:41:00 +0000</bug_when>
    <thetext>Git commit 711c5bb43f2823766d5189dc8d567c8f4cec253c by David Edmundson.
Committed on 16/05/2024 at 08:23.
Pushed by davidedmundson into branch &apos;master&apos;.

wayland: send dndFinished to source if target fails to do so

After receiving a drop a client should call data_offer.finish
to tell the source it&apos;s done using the drop.

A client could delete an offer after drop before calling finish.

This can happen with misbehaving/buggy or malicious Wayland clients.
A real case was found in the wild with Chromium, as described in the
linked bug.

In this situation we should let the source know the dnd is finished
as there are no other transfers than can take place.

We don&apos;t want to universally send this in all data offer destructors
only, offers that are deleted post drop so the flag on the source is
exposed.

M  +22   -2    src/wayland/abstract_data_source.h
M  +8    -1    src/wayland/dataoffer.cpp
M  +3    -12   src/wayland/datasource.cpp
M  +0    -3    src/wayland/datasource.h

https://invent.kde.org/plasma/kwin/-/commit/711c5bb43f2823766d5189dc8d567c8f4cec253c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2320229</commentid>
    <comment_count>47</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-05-17 13:19:36 +0000</bug_when>
    <thetext>*** Bug 486638 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2320231</commentid>
    <comment_count>48</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-05-17 13:20:36 +0000</bug_when>
    <thetext>*** Bug 484491 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2323890</commentid>
    <comment_count>49</comment_count>
    <who name="Shawn">shawn</who>
    <bug_when>2024-06-01 23:24:49 +0000</bug_when>
    <thetext>kwin 6.0.5-2 was just released to Arch and seems to have fixed the issue.  I can&apos;t make it crash when dragging something in Chromium, Brave etc.  So nice to be able to switch the browser back to Wayland.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2325093</commentid>
    <comment_count>50</comment_count>
    <who name="Antonio Rojas">arojas</who>
    <bug_when>2024-06-06 16:26:51 +0000</bug_when>
    <thetext>*** Bug 488113 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2325631</commentid>
    <comment_count>51</comment_count>
    <who name="Hyuri">hyuri.pimentel</who>
    <bug_when>2024-06-08 00:50:23 +0000</bug_when>
    <thetext>To be clear, this was only fixed for Plasma 6+, not Plasma 5.27+, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2326047</commentid>
    <comment_count>52</comment_count>
    <who name="flex">frostynova</who>
    <bug_when>2024-06-10 04:25:02 +0000</bug_when>
    <thetext>Similarly concerned about this, Plasma 5.27 also has a large number of users affected.(In reply to Hyuri from comment #51)
&gt; To be clear, this was only fixed for Plasma 6+, not Plasma 5.27+, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462937</commentid>
    <comment_count>53</comment_count>
    <who name="">edu</who>
    <bug_when>2025-10-18 17:15:33 +0000</bug_when>
    <thetext>Is this really fixed? I&apos;m trying KDE Linux with plasma 6.6 and dragging text in chrome tab makes it stop responding to mouse events. Other tabs are unaffected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462955</commentid>
    <comment_count>54</comment_count>
    <who name="hmnd">david</who>
    <bug_when>2025-10-18 18:15:19 +0000</bug_when>
    <thetext>(In reply to edu from comment #53)
&gt; Is this really fixed? I&apos;m trying KDE Linux with plasma 6.6 and dragging text
&gt; in chrome tab makes it stop responding to mouse events. Other tabs are
&gt; unaffected.

Yeah, I don&apos;t think so. It&apos;s been happening to me occasionally too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2463618</commentid>
    <comment_count>55</comment_count>
    <who name="Lenzoid">strong.drum0546</who>
    <bug_when>2025-10-21 16:47:11 +0000</bug_when>
    <thetext>Last two comments: thanks for bringing this up. I opened a new issue for this since I believe it is a different thing. See Bug 510876</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2463917</commentid>
    <comment_count>56</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-10-22 20:01:38 +0000</bug_when>
    <thetext>It&apos;s unlikely for that issue to be the exact same bug as this, let&apos;s track it only in the new bug report.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>