10

How to disable mouse middle button click paste (AKA PRIMARY selection buffer), but keep that button working?

My system: Ubuntu 16.04 with KDE v5.8.5.

Pablo Bianchi
  • 17,371
Silas
  • 101

2 Answers2

0

You can install Klipper and turn on settings "ignore mouse selection".

0

From what I can find, the issue stems from the X Window System (X11). It seems to have its own clipboard which pastes on middle-mouse click. Unfortunately, this does not seem configurable.

I have seen people try clear this clipboard through various hacks (infinite loops that clear it, rebinding, etc...) but I reckon it is easiest to just download something maintained by someone else rather than trying to work around all these edge-cases. I use this: https://github.com/milaq/XMousePasteBlock

Liam Pillay
  • 101
  • 2