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