Bug 495846

Summary: Aborted drags can break input handling in Chromium and Electron (e.g. VS Code, Chrome, Discord, etc)
Product: [Plasma] kwin Reporter: Jean-Francois Roy <jf>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: david, duha.bugs, kdedev, nate
Priority: NOR    
Version First Reported In: 6.2.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screencast showing the bug

Description Jean-Francois Roy 2024-11-05 16:32:19 UTC
Created attachment 175556 [details]
screencast showing the bug

SUMMARY
In a Chromium (and Electron) app, when a drag cannot complete and the mouse is released, all input breaks in the app.

STEPS TO REPRODUCE
1. Open a git repo in Visual Studio Code (see version below)
2. Open a file (one tab total now)
3. Pick a commit in the Source Control module and click on the small "Open All Changes" icon (2 tabs total now)
4. Try to drag the _Changes ..._ tab

OBSERVED RESULT
The drag is blocked and upon releasing the mouse all input breaks.

EXPECTED RESULT
Input continues to work.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor
Memory: 62.4 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090/PCIe/SSE2
Manufacturer: ASUS

ADDITIONAL INFORMATION

VSCode version (installed from Arch AUR):
Version: 1.95.1
Commit: 65edc4939843c90c34d61f4ce11704f09d3e5cb6
Date: 2024-10-31T05:14:54.222Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Linux x64 6.11.6-arch1-1
Comment 1 TraceyC 2024-11-25 17:11:11 UTC
I'm able to reproduce this with the steps to reproduce in Plasma 6.2.3 as well as git-master
I also noticed that if I have two Visual Studio windows, and one is broken in the way described, the other still works as expected.

Visual Studio Code v 1.95.3 installed from Solus repo
Electron 32.2.5
Chromium 128.0.6613.186
Comment 2 TraceyC 2024-11-25 17:53:40 UTC
I take that back, both windows were not responding
Comment 3 hmnd 2025-07-25 20:21:45 UTC
Still experiencing this with all Chrome browsers (currently on Vivaldi) and occasionally with Discord. I think this should be given higher priority as it's pretty annoying and breaking when it happens.
Comment 4 TraceyC 2025-07-28 16:20:17 UTC
(In reply to hmnd from comment #3)
> Still experiencing this with all Chrome browsers (currently on Vivaldi) and
> occasionally with Discord. I think this should be given higher priority as
> it's pretty annoying and breaking when it happens.

Can you please run kinfo in a terminal and paste the output into this report? Thanks.