Middle-click paste setting: where is it?

Hi,

I’d like to disable the middle click paste feature and someone suggested, in another topic, to disable it in the System Settings.

So I went to System Settings, General Behaviour but I can’t see that setting.
My Neon installation is, more or less, 2 and half years old and it’s fully updated at what we have today.
Is there something went wrong during the time as the reason why I don’t have that setting or is it disabled by default after a specific update?
Is there a way I can recover that setting in another way or “restore” the system without reinstalling everything to have the whole settings manageable into General Behaviour?

thanks in advance.

Did it get dropped in Neon? This is plasma 6.4.5, you didn’t actually state what you’re running (and ‘the latest’ is pretty fuzzy).

Sorry…you’re right.
This is what I have on General Behaviour

And this is my system

As you can see I’m missing that feature between the “clicking files and folders” and the “Double-click interval”.

In OpenSUSE TW exists too:

You can try to make a new user and see the system settings?

Regards

This could be a Wayland vs X11 difference

2 Likes

Operating System: EndeavourOS
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.3-arch2-1 (64-bit)
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce RTX 3060 Ti

this function used to be here…on plasma 5

does plasma 6 not have this setting page any more?

btw, middle mouse paste works on my plasma 5, X11 session even without this setting

It does, but isn’t this option specifically about “paste into the desktop folder when I middle-click on the desktop”, rather than controlling what happens when you middle-click in an application window?

ah, yes that is what it does and explains why it doesn’t have any effect on middle-click to paste into a terminal

As mentioned this is a setting for the Plasma folder view.

Given the earlier postings, my assumption is that middle-mouse paste on X11 is implemented by each application (or more likely their respective toolkit).

This might still be true with Wayland, however Plasma (or more specifically KWin) might have gain the capability to somehow do this “globally”.

On Wayland the compositor (KWin) is the primary recipient of input events such as mouse or keyboard presses and can treat them however it wants before passing them on to the application windows (or not pass them on at all).

So kwin_wayland could, theoretically detect middle-mouse clicks on any window and send CTRL+V to them instead (which most applications use as the paste action shortcut).

Since I am on a very similar setup as the OP (Neon, most recent updates, e.g. Plasma 6.4.5) I checked that theory and can indeed see this option when starting a Wayland session while it is missing in an X11 session.

ok.. so it’s an X11 missing feature?

My guess is this:

  • the option requires Wayland as it is a kwin_wayland feature on top of what applications support
  • if deactivated the applications could still do the paste themselves as the only way to avoid that would be to not send them middle click events at all
  • they and/or their toolkits might very well have similar settings themselves
  • these could also be available on X11
1 Like

That’s it, I implemented this setting, but some Apps might not comply with it notably Firefox.

In X11, you need specific hacks that are independent of the window manager, outside of KDE Plasma X11 scope. This middle-click pasting has been a X thing since forever. And something I absolutely required it personally for Wayland to be usable.

Indeed, as Firefox does its own thing.

They don’t, they implement the Wayland protocol as intended, without working around it like Firefox.

This has already been discussed a couple of times:

2 Likes

The setting to control this is only available on Wayland. On X11 there’s no KDE config UI to turn it off; you’ll have to figure out how to do that on your own.

2 Likes

I feel it is strange that Middle Button Paste appears under “Workspace → General Behavior” and does not appear under “Mouse”. It’s just not a place that I would expect to find a middle click paste setting. I think it would be helpful if the setting appeared in both places.

We thought about having settings in two places.

But it would raise some eyebrows. The middle ground would be to have a link from one kcm to the other. You can report a bug for plasma or systemsettings.

Still, this is about mouse interaction and in this page, there is already a “click” section with very OS oriented preferences, and that’s not specific to a single mouse and applies to touchpad too. So IMO it is well where it is at least.

Plus we have a search feature…

1 Like

Krunner: middle click brings up the setting for me… but that’s regarded as ‘super power user’ stuff I believe :wink:

thank you everyone for the replies.

Now it’s clear.
I’ll live with it until Wayland will be ok for my needs and hardware.