Bug 464474 - Disabling middle click paste does not affect XWayland applications
Summary: Disabling middle click paste does not affect XWayland applications
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: master
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-18 18:38 UTC by Oliver Beard
Modified: 2024-03-09 00:56 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Beard 2023-01-18 18:38:51 UTC
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.
Comment 1 Méven Car 2023-01-19 09:00:22 UTC
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".
Comment 2 Oliver Beard 2023-01-19 09:09:15 UTC
Yep, meant that nothing happens would be the expected result, and yes, both source and destination are XWayland applications.
Comment 3 Pedro V 2023-08-12 12:14:08 UTC
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.
Comment 4 Nate Graham 2023-08-14 21:07:56 UTC
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.
Comment 5 Nate Graham 2023-08-14 21:08:16 UTC
Anyway, can reproduce.
Comment 6 Diana 2023-11-30 02:23:12 UTC
Still an issue