Copy/Paste seems erratic

Hi Folks,
I’ve a problem with copy/paste under Wayland, which has been reported before.
If I highlight text then paste a copy/paste via mouse-wheel, it works; but then, if I highlight a second line of text and copy/paste, some other text gets pasted, probably from a ^c copy (in another clipboard?).
I checked and xclip seems to have been installed by default, but I’m not sure if that is appropriate (as it seems to be for x11?), or whether I should swap it out for one of the several other clipboards packages.
Any suggestions about how I can get the copy/paste selection and ^c-^v clipboard functionality in Wayland?
Cheers,
Brad

Which wayland compositor are you referring to here?

Ummm…not sure. What ever the default is for KDE Plasma.
does qt6-waylandcompositor-devel make sense?

That is a devel(opment) package, so no.

I don’t have any issues copy/pasting in Plasma6 on Wayland on TW, just using the Plasma6 clipboard.

Then Plasma Wayland is the answer. :wink:

Me neither.

Ok. I do not know enough about the UI to be able to answer properly. I just searched yast on compositor and that seemed like the most relevant


I can copy/paste using ^c-^v which seems to work consistently; it is the highlight then mouse-wheel copy-paste that only seems to work properly once to paste the highlighted text; highlighting another line of text does copy for me. Instead I get some other text, probably from ^c in the clipboard.
Cheers.

Speculating a bit here…

Plasma’s clipboard manager (Klipper) can try to synchronize these, but it only works reliably for native Wayland apps. If you’re highlighting text in X11 apps running under XWayland, the middle-click paste can end up pasting the “stale” clipboard contents (Ctrl+C) instead of the most recent highlight. That might explain what you’re describing here, whereby your first highlight/middle-click works, but subsequent ones sometimes paste old content.

1 Like

What seems to work ok is to highlight the GUI app text with a mouse but use CTRL+C to copy, then use middle-click again to paste the selection as required.

Your solution seems to work in Libreoffice Writer.
It is a bit annoying as I have become very appreciative of the simplicity of highlighting/pasting without having to explicitly copy. It can all be done via mouse buttons (hightlight, right click/copy, etc.), but it just isn’t the same. :sob:
Thanks for confirming and identifying a work-around.
Cheers.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.