I'm using the middle mouse button on my ThinkPad with Ubuntu to scroll and I'm pasting a lot of text in my documents by accident which is very annoying and I often end up with messed up documents.
I searched on the internet how to disable this feature. The only quick solution I've found is to execute xmodmap -e "pointer = 1 25 3 4 5 6 7 8 9"
in the konsole or for a persistent change to put pointer = 1 25 3 4 5 6 7 8 9
in the ~/.Xmodmap
file. So the middle butten gets remapped to another button. This works fine for me, but now I cannot use use the middle mouse button for anything else---especially not for my beloved feature of opening new tabs in firefox by middle-clicking. Or just anything else...
Apart from directly patching the GTK I was not able to find anything else. Does someone know a more elegant way to disbale the middle-click-paste functionality in Ubuntu?
my system:
ThinkPad-R61
3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:54:42 UTC 2013 i686 i686 i686 GNU/Linux
button1
, which is probably left click. That would make sense, since you left click to highlight text, and highlighting text is what puts text into the middle click buffer. – Dave Yarwood Mar 23 '19 at 23:42