So I have taken note that disabling middle click past is…problematic. I have been thru posts on multiple forums, tried finding a discord server “only had discount discord knockoffs like matrix :(”, and have spoken with multiple less than helpful people in regards to making this a thing.
As some one who uses multiple art and canvas style programs where middle click acts as a scroll/zoom/grab, having it past random stuff every time I click is about the most annoying thing ever. I have seen multiple “weeks worth of” non-answers to this. With SO MANY people asking for the ability to disable it.
Is there an option somewhere that is just tucked away? A nice simple “Dont do this” option somewhere that I have missed buried under all the old posts? I know its almost impossible to git rid of in x11 but wayland was supposed to be the great white hope that fixed this. I have used a few other systems that did not have this enabled. And have seen several remarks that it is supposed to be disabled by default but that kde has re-enabled it for some reason. Is this correct? and if so how do I fix it?
big love for those with clear, concise, simple solutions. <3
Could you give an example of where this happens?
In what applications?
I know this is a feature in consoles and also in for example Kate (mark something and press mmb and it pastes that). But that is not a “clipboard feature”, ie it does not turn up in the normal ctrl+c ctrl+v clipboard.
But if I use for example Krita and press mmb, it correctly “grabs the canvas” and moves it around.
A little more specific situation so people can try reproduce the issue.
Obsidian.md, krita (mine does not work as yours does apparently ), DR, Arkenforge, photopea, darktable, digicam…I’ll save us some time. For me it is any program that can accept a past function.
I will give a single example. While using comfyui “a stable diffusion front end” you middle click to grab the canvas and move it around I.E. “hand tool”. When I have a prompt or picture in my clip board middle clicking pasts that image instead of grabbing the canvas.
Obsidian.md has the same behavior and might be easier to investigate.
But any program that I have ran exhibits this behavior. </3
@medin 's solution fixed it for darktable (no idea why) but has otherwise not altered this behavior.
Obsidian also uses the feature, mark and mmb pastes what is marked.
Or maybe this is not per application at all because:
I can also reproduce it in this chatbox I am typing in right now using firefox, I have never noticed that before.
But it only seems to work in text boxes, ie, I have to hold my mouse inside the textbox for it to work, if I mmb outside, it turns into the normal "scroll by moving mouse up/down)
It also travels between applications, ie if I mark something in for example Obsidian, I can then go to this window (firefox) and mmb and it will paste that here in the chatbox!
Nothing is ever shown in clipboard.
No matter what I try, I can not reproduce this in Krita the way you describe it though.
But mmb wherever I can type text also pastes in Krita.
This makes me think this probably works in ANY text “window”.
Thanks for the tips. But after I disabled this function, both in Workspace->General Behavior and Desktop Configuration->Mouse (not exactly the words but similarly), the middle button still acts as paste. Debian 12.5 with Plasma 5.27.5.
The function of the mouse middle button is really helpful and convenient - with Thinkpad’s touchpad and trackpoint, so I don’t want to disable the middle button totally. But pasting code patterns during scrolling is really annoying…
Update: sorry for raising the question. Now it would not paste in most of apps, but in firefox and VS Code, it still pastes. Is it a problem of X11? Here’s my reason: firefox and VS Code are probably running on XWayland instead of Wayland apps such as Plasma or Dolphin, so there’re settings on X11 that still enables the pasting fuction.