SUMMARY Disabling middle click paste in Workspace Behaviour > General Behaviour is respected by native Wayland applications, but not by applications running under XWayland. STEPS TO REPRODUCE 1. Launch an XWayland application, and highlight some text. 2. Middle click somewhere to paste it. OBSERVED RESULT The highlighted text is pasted. EXPECTED RESULT The primary selection buffer is copied to, and then pasted on middle click. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION This might be fixed by preventing filling the primary selection buffer, clearing it on copy, or preventing paste.
Is the destination application of the middle is also a XWayland application ? I don't understand your expected result. It seems to me the expected result would be "Nothing happens".
Yep, meant that nothing happens would be the expected result, and yes, both source and destination are XWayland applications.
I believe bug 441668 should be reopened and this should be marked as a duplicate of it as the issue wasn't really resolved. Can confirm this still being an issue with Plasma 5.27.4, just not noticing it often with the progressive moving to Wayland. Do note thought that as described in the other bug report, this issue can appear to linger around even after a fix due to some programs not wanting to let primary selection go with for example Firefox defaulting to emulating it by default even on Wayland.
The fact that there's a bug in the implementation doesn't mean that the original work wasn't completed. It's appropriate for this to be the bug report for the issue in question.
Anyway, can reproduce.
Still an issue
Still appears to be an issue. Can reproduce in: Plasma Version: 6.3.4 Frameworks Version: 6.13.0 Qt Version: 6.9.0
Can confirm still, and that XMousePasteBlock works to stop it for this case too, for now. https://gist.github.com/poyotanp/d3aff65df96d0cf93c78a3e52fedd6fa Hopefully this gives some respite. I was having a weird lesser bug where this didn't stop the first paste in steam chat windows, but it isn't happening after a restart. Operating System: CachyOS Linux KDE Plasma Version: 6.4.5 KDE Frameworks Version: 6.19.0 Qt Version: 6.10.0 Kernel Version: 6.17.3-3-cachyos (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor Memory: 32 GiB of RAM (31.3 GiB usable) Graphics Processor: NVIDIA GeForce RTX 3070 Ti Manufacturer: Micro-Star International Co., Ltd. Product Name: MS-7C56 System Version: 2.0