Bug 462434

Summary: possible bug when pasting text from gvim to chrome
Product: [Plasma] kwin Reporter: flaviogrossi
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, vasishath
Priority: NOR    
Version First Reported In: 5.27.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description flaviogrossi 2022-11-30 12:03:55 UTC
SUMMARY
when pasting text from gvim to chrome using the middle mouse button, chrome freezes


STEPS TO REPRODUCE
1. open graphical vim, enter some text, and select it using the mouse
2. open google chrome, go to google.com (or any other web page)
3. paste the text in an input field using the middle mouse button

OBSERVED RESULT
chrome freezes completely

EXPECTED RESULT
the text is pasted

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 36
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
The bug is not triggered from any other application, like kwrite, non-graphical vim, etc.
The bug is not triggered if copy/pasting using the right button menu, or the ctrl-c/ctrl-v shourtcuts.

I reported this bug to the chrome project here https://bugs.chromium.org/p/chromium/issues/detail?id=1393649
and they suspect that there may be a bug in kwin's xwayland implementation (or at least some feedback about this is needed).
Please see the above link for details
Thanks
Comment 1 flaviogrossi 2022-11-30 17:49:56 UTC
N.B. chrome must be started with  --ozone-platform=wayland flag, se per the linked chromium bug report
Comment 2 Vasishath Kaushal 2022-12-22 04:21:52 UTC
I can confirm this issue. This only happens when text is copied from an xwayland based app.
Comment 3 flaviogrossi 2023-02-28 10:14:49 UTC
any news on this one? I can still reproduce it against plasma 5.27
Comment 4 Vlad Zahorodnii 2024-10-01 10:16:03 UTC
Pasting text from the primary selection provided by gvim (x11) into chrome (wayland) works for me in Plasma 6 (6.2).