Is there a way to disable the middle mouse button paste behavior that is here by default on gnome?
I have a sensitive mouse wheel and whenever I scroll texts, sometimes it pastes stuff randomly into the text. I lose quite a lot of credibility when I send a file to someone else that has random text snippets pasted all over it.
I have seen a solution that goes by mapping the mouse's middle button to a non-existant mouse button, but that implies getting rid of the middle mouse button altogether (i.e. no tab-closing, opening links into a new tab automatically, etc.). I'd like to keep my middle mouse button active, just disable the pasting behavior.
This also happens when I scroll text with my touchpad (accidentally hit two-fingers without moving, bam.)
So the problem will not be fixed just by changing for a new mouse (in fact I believe it happens more often with my touchpad than with my mouse).
Best Answer
For a solution to the problem, please view this guide I wrote
Or, more directly, here's the patch to disable the 'middle mouse button paste' functionality in GTK.